Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

  • BooleanType
  • DictionaryType
  • FloatType
  • IntegerType
  • NullableType
  • ObjectType
  • SequenceType
  • StringType
  • Type
  • UnionType

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 
<?php
namespace esperecyan\webidl\lib;

/** @internal */
class BooleanType
{
    use Utility;
    
    /**
     * 与えられた値を論理型に変換して返します。
     * @link https://www.w3.org/TR/WebIDL-1/#idl-boolean WebIDL Level 1
     * @param mixed $value
     * @return bool
     */
    public static function toBoolean($value)
    {
        return (bool)$value;
    }
}
esperecyan/webidl documentation API documentation generated by ApiGen