Selen

Key
in package

Table of Contents

Properties

$name  : string|int|null
$require  : bool

Methods

__construct()  : Key
インスタンスを生成します
getName()  : string|int|null
key名を取得します
getRequire()  : bool
keyの必須有無を取得します

Properties

$name

private string|int|null $name

key名

$require

private bool $require

Methods

__construct()

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

public __construct(string|int|null $name, bool $require) : Key
Parameters
$name : string|int|null

key名を指定します。index arrayの場合はnullを渡します。

$require : bool
Return values
Key

getName()

key名を取得します

public getName() : string|int|null
Return values
string|int|null

key名を返します

getRequire()

keyの必須有無を取得します

public getRequire() : bool
Return values
bool

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


        
On this page

Search results