class Rule

Rule

Traits

Properties

protected $attributes from AttributeTrait
protected string $minified from MinifyTrait
protected bool $useMinified from MinifyTrait
protected null|string $target from TargetTrait
static protected Rule[] $ruleList
static protected bool $loaded
protected string $ruleName 해당 인스턴스에 포함된 rule 이름
protected array $rules 해당 인스턴스에 포함된 rule 목록

Methods

$this
attr(string $name, string $value)

태그에 속성을 지정한다.

$this
min(string $minified, bool|false $useMinified = false)

min

$this
target(string $target)

set target

string
__toString()

to string

static string
output()

입력 받은 rule 출력

static void
init()

init

__construct(string $ruleName, array $rules)

create instance

array
getRules()

return rules

string
render()

renders

Details

in AttributeTrait at line 39
$this attr(string $name, string $value)

태그에 속성을 지정한다.

Parameters

string $name name
string $value value

Return Value

$this

in MinifyTrait at line 45
$this min(string $minified, bool|false $useMinified = false)

min

Parameters

string $minified minified
bool|false $useMinified use minified

Return Value

$this

in TargetTrait at line 37
$this target(string $target)

set target

Parameters

string $target target

Return Value

$this

in EmptyStringTrait at line 30
string __toString()

to string

Return Value

string

at line 63
static string output()

입력 받은 rule 출력

Return Value

string

at line 83
static void init()

init

Return Value

void

at line 95
__construct(string $ruleName, array $rules)

create instance

Parameters

string $ruleName rule 이름
array $rules rules

Exceptions

Exception

at line 121
array getRules()

return rules

Return Value

array

at line 131
string render()

renders

Return Value

string