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
$arrayDefine
public
ArrayDefine|null
$arrayDefine
$key
public
Key
$key
$valueValidateExecutes
public
array<string|int, ValueValidateInterface|callable>
$valueValidateExecutes
$haveCalledArrayDefine
private
bool
$haveCalledArrayDefine
= false
$haveCalledValue
private
bool
$haveCalledValue
= false
Methods
arrayDefine()
public
arrayDefine(Define ...$define) : Define
Parameters
- $define : Define
-
定義を指定します
Tags
Return values
DefineisAssocArrayDefine()
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
DefinenestedTypeDefineExists()
ネストされた定義が存在するか確認します
public
nestedTypeDefineExists() : bool
Return values
bool —存在する場合はtrueを、それ以外の場合はfalseを返します
noKey()
添字配列(index)の定義を生成します
public
static noKey() : Define
Return values
Definevalue()
public
value(ValueValidateInterface|callable ...$executes) : Define
Parameters
- $executes : ValueValidateInterface|callable
-
検証値を渡します
Tags
Return values
Define__construct()
インスタンスを生成します
private
__construct(Key $key) : Define
Parameters
- $key : Key