Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

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

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree

Class NullableType

esperecyan\webidl\lib\NullableType uses esperecyan\webidl\lib\Utility (not available)
Namespace: esperecyan\webidl\lib
Internal
Located at lib/NullableType.php
Methods summary
public static array
# toNullable( mixed $value, string $type, array $pseudoTypes = [] )

与えられた値を、指定された型、または NULL 型に変換して返します。

与えられた値を、指定された型、または NULL 型に変換して返します。

Parameters

$value
$type
nullable 型の内部型 (T? の T)。
$pseudoTypes
callback interface 型、列挙型、callback 関数型、または dictionary 型の識別子をキーとした型情報の配列。

Returns

array

Throws

InvalidArgumentException
指定された型、または NULL 型のいずれにも合致しない値が与えられた場合。
DomainException
指定された型、または NULL 型のいずれにも合致しない値が与えられた場合。

Link

WebIDL Level 1
esperecyan/webidl documentation API documentation generated by ApiGen