Selen

Define
in package

Table of Contents

Properties

$arrayDefine  : ArrayDefine|null
$key  : Key
$valueValidateExecutes  : array<string|int, ValueValidateInterface|callable>
$haveCalledArrayDefine  : bool
$haveCalledValue  : bool

Methods

arrayDefine()  : Define
isAssocArrayDefine()  : bool
AssocArray(keyあり)か確認します
isIndexArrayDefine()  : bool
IndexArray(keyなし)か確認します
isKeyValidate()  : bool
keyの検証処理を実行するか判定します。
isValueValidate()  : bool
valueの検証処理を実行するか判定します。
key()  : Define
連想配列(assoc)の定義を生成します
nestedTypeDefineExists()  : bool
ネストされた定義が存在するか確認します
noKey()  : Define
添字配列(index)の定義を生成します
value()  : Define
__construct()  : Define
インスタンスを生成します

Properties

$haveCalledArrayDefine

private bool $haveCalledArrayDefine = false

$haveCalledValue

private bool $haveCalledValue = false

Methods

arrayDefine()

public arrayDefine(Define ...$define) : Define
Parameters
$define : Define

定義を指定します

Tags
throws
LogicException

メソッドの呼び出し順が不正なときに発生します

Return values
Define

isAssocArrayDefine()

AssocArray(keyあり)か確認します

public isAssocArrayDefine() : bool
Return values
bool

AssocArrayの場合はtrueを、それ以外の場合はfalseを返します

isIndexArrayDefine()

IndexArray(keyなし)か確認します

public isIndexArrayDefine() : bool
Return values
bool

IndexArrayの場合はtrueを、それ以外の場合はfalseを返します

isKeyValidate()

keyの検証処理を実行するか判定します。

public isKeyValidate() : bool
Return values
bool

変換する場合はtrueを、それ以外の場合はfalseを返します

isValueValidate()

valueの検証処理を実行するか判定します。

public isValueValidate() : bool
Return values
bool

変換する場合はtrueを、それ以外の場合はfalseを返します

key()

連想配列(assoc)の定義を生成します

public static key(string|int $name, bool $require) : Define
Parameters
$name : string|int
$require : bool
Return values
Define

nestedTypeDefineExists()

ネストされた定義が存在するか確認します

public nestedTypeDefineExists() : bool
Return values
bool

存在する場合はtrueを、それ以外の場合はfalseを返します

noKey()

添字配列(index)の定義を生成します

public static noKey() : Define
Return values
Define

__construct()

インスタンスを生成します

private __construct(Key $key) : Define
Parameters
$key : Key
Return values
Define

        
On this page

Search results