Copied!

BlockValue

BlockValue.php : 15

Methods

public__construct()

BlockValue.php : 43
public __construct(string $id, non-empty-string $type, string|null $name, string $view, string|null $class, string|null $style, string|null $compiled[, DateTime|null $since = null ][, DateTime|null $till = null ][, array<string|int, Attribute$attributes = [] ])

Parameters

Name Type Default value Description
$id string - -
$type non-empty-string - -
$name string|null - -
$view string - -
$class string|null - -
$style string|null - -
$compiled string|null - -
$since DateTime|null null -
$till DateTime|null null -
$attributes array<string|int, Attribute> [] -

publicgetAttribute()

BlockValue.php : 129
public getAttribute(string $name) : Attribute|null

Parameters

Name Type Default value Description
$name string - -

Return values

Attribute|null

publicgetAttributes()

BlockValue.php : 116
public getAttributes() : array<string|int, Attribute>

Return values

array<string|int, Attribute>

publicgetClass()

BlockValue.php : 152
public getClass() : string|null

Return values

string|null

publicgetCompiled()

BlockValue.php : 172
public getCompiled() : string|null

Return values

string|null

publicgetId()

BlockValue.php : 67
public getId() : string

Return values

string

publicgetName()

BlockValue.php : 93
public getName() : string|null

Return values

string|null

publicgetSince()

BlockValue.php : 182
public getSince() : DateTime|null

Return values

DateTime|null

publicgetStyle()

BlockValue.php : 162
public getStyle() : string|null

Return values

string|null

publicgetTill()

BlockValue.php : 192
public getTill() : DateTime|null

Return values

DateTime|null

publicgetType()

BlockValue.php : 80
public getType() : non-empty-string

Return values

non-empty-string

publicgetView()

BlockValue.php : 103
public getView() : string

Return values

string

publicisVisible()

BlockValue.php : 205
public isVisible([DateTimeInterface|null $dateTime = null ]) : bool

Parameters

Name Type Default value Description
$dateTime DateTimeInterface|null null -

Return values

bool

Tags
Throws
Exception

publicsetAttribute()

BlockValue.php : 143
public setAttribute(string $name, mixed $value) : void

Parameters

Name Type Default value Description
$name string - -
$value mixed - -
Tags
Throws
InvalidArgumentException

publicsetAttributes()

BlockValue.php : 124
public setAttributes(array<string|int, Attribute$attributes) : void

Parameters

Name Type Default value Description
$attributes array<string|int, Attribute> - -

publicsetClass()

BlockValue.php : 157
public setClass(string|null $class) : void

Parameters

Name Type Default value Description
$class string|null - -

publicsetCompiled()

BlockValue.php : 177
public setCompiled(string|null $compiled) : void

Parameters

Name Type Default value Description
$compiled string|null - -

publicsetId()

BlockValue.php : 72
public setId(string $id) : void

Parameters

Name Type Default value Description
$id string - -

publicsetName()

BlockValue.php : 98
public setName(string|null $name) : void

Parameters

Name Type Default value Description
$name string|null - -

publicsetSince()

BlockValue.php : 187
public setSince(DateTime|null $since) : void

Parameters

Name Type Default value Description
$since DateTime|null - -

publicsetStyle()

BlockValue.php : 167
public setStyle(string|null $style) : void

Parameters

Name Type Default value Description
$style string|null - -

publicsetTill()

BlockValue.php : 197
public setTill(DateTime|null $till) : void

Parameters

Name Type Default value Description
$till DateTime|null - -

publicsetType()

BlockValue.php : 88
public setType(non-empty-string $type) : void

Parameters

Name Type Default value Description
$type non-empty-string - -

publicsetView()

BlockValue.php : 108
public setView(string $view) : void

Parameters

Name Type Default value Description
$view string - -