Overview

Namespaces

  • esperecyan
    • webidl
      • lib

Classes

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

Traits

  • Error
  • Overview
  • Namespace
  • Class
  • Tree

Class DictionaryType

esperecyan\webidl\lib\DictionaryType uses esperecyan\webidl\lib\Utility (not available)
Namespace: esperecyan\webidl\lib
Internal
Located at lib/DictionaryType.php
Methods summary
public static array
# toDictionary( mixed $value, string $identifier, array $pseudoTypes )

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

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

Parameters

$value
$identifier
$pseudoTypes

Returns

array

Throws

DomainException
dictionary メンバと同じキーを持つ $value の要素について、型が合致しない場合。

Link

WebIDL Level 1
WebIDL Level 1
public static esperecyan\webidl\Record
# toRecord( mixed $traversable, string $keyType, string $valueType, array $pseudoTypes = [] )

与えられた値を、esperecyan\webidl\Record に変換して返します。

与えられた値を、esperecyan\webidl\Record に変換して返します。

Parameters

$traversable
$keyType
record のキーの型 (record<K, V> の K)。
$valueType
record の値の型 (record<K, V> の V)。
$pseudoTypes

Returns

esperecyan\webidl\Record

Throws

DomainException
与えられた配列のキーまたは値が、指定された型に合致しない場合。

Link

Web IDL
esperecyan/webidl documentation API documentation generated by ApiGen