Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

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

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree

Class ObjectType

esperecyan\webidl\lib\ObjectType uses esperecyan\webidl\lib\Utility (not available)
Namespace: esperecyan\webidl\lib
Internal
Located at lib/ObjectType.php
Methods summary
public static object
# toObject( mixed $value )

与えられた値をオブジェクト型に変換して返します。

与えられた値をオブジェクト型に変換して返します。

Parameters

$value

Returns

object

Link

WebIDL Level 1
public static object
# toInterface( object $value, string $fullyQualifiedName )

与えられた値が、指定されたクラスのインスタンス、指定されたクラスを継承したクラスのインスタンス、または指定されたインターフェースを実装したクラスのインスタンスかチェックして返します。

与えられた値が、指定されたクラスのインスタンス、指定されたクラスを継承したクラスのインスタンス、または指定されたインターフェースを実装したクラスのインスタンスかチェックして返します。

Parameters

$value
$fullyQualifiedName
クラス、またはインターフェースの完全修飾名。

Returns

object

Throws

InvalidArgumentException
オブジェクト以外が与えられた場合、または指定されたクラス名、インターフェース名に合致しないオブジェクトが与えられた場合。

Link

WebIDL Level 1
WebIDL Level 1
public static object|callable
# toCallbackInterface( object|callable $value, boolean $singleOperationCallbackInterface = false )

与えられた値をオブジェクト型、または callable に変換して返します。

与えられた値をオブジェクト型、または callable に変換して返します。

Parameters

$value
$singleOperationCallbackInterface
単一演算 callback interface であれば真。

Returns

object|callable

$singleOperationCallbackInterface が偽なら常にオブジェクト。 $singleOperationCallbackInterface が真なら、callbale の場合がある。

Throws

InvalidArgumentException

与えられた値がオブジェクトでも配列でもない場合。 ただし $singleOperationCallbackInterface が真であれば、callable である文字列に対しては例外を発生させない。

Link

WebIDL Level 1
WebIDL Level 1
WebIDL Level 1
public static object
# toCallbackFunction( callable $value )

与えられた値が callable かチェックして返します。

与えられた値が callable かチェックして返します。

Parameters

$value

Returns

object

Throws

InvalidArgumentException
callable でない値が与えられた場合。

Link

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