Copied!

BlockValue

BlockValue.php : 15

Methods

public__construct()

BlockValue.php : 59
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, DateTime|null $till, 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 - -
$till DateTime|null - -
$attributes array<string|int, Attribute> - -

publicgetAttribute()

BlockValue.php : 168
public getAttribute(string $name) : Attribute

Parameters

Name Type Default value Description
$name string - -

Return values

Attribute

publicgetAttributes()

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

Return values

array<string|int, Attribute>

publicgetClass()

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

Return values

string|null

publicgetCompiled()

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

Return values

string|null

publicgetId()

BlockValue.php : 86
public getId() : string

Return values

string

publicgetName()

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

Return values

string|null

publicgetSince()

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

Return values

DateTime|null

publicgetStyle()

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

Return values

string|null

publicgetTill()

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

Return values

DateTime|null

publicgetType()

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

Return values

non-empty-string

publicgetView()

BlockValue.php : 134
public getView() : string

Return values

string

publicisVisible()

BlockValue.php : 283
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 : 187
public setAttribute(string $name, mixed $value) : void

Parameters

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

publicsetAttributes()

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

Parameters

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

publicsetClass()

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

Parameters

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

publicsetCompiled()

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

Parameters

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

publicsetId()

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

Parameters

Name Type Default value Description
$id string - -

publicsetName()

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

Parameters

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

publicsetSince()

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

Parameters

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

publicsetStyle()

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

Parameters

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

publicsetTill()

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

Parameters

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

publicsetType()

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

Parameters

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

publicsetView()

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

Parameters

Name Type Default value Description
$view string - -