View
in package
FinalYes
Table of Contents
Properties
- $contents : array<string|int, mixed>
- $fields : array<string|int, mixed>
- $icon : Icon
- $title : string
- $type : ViewType
Methods
- __construct() : mixed
- addField() : static
- getFields() : array<string|int, ViewItem>
- getIcon() : Icon
- getTitle() : string
- getType() : ViewType
- setIcon() : static
- setTitle() : static
- setType() : static
Properties
$contents
private
array<string|int, mixed>
$contents
$fields
private
array<string|int, mixed>
$fields
$icon
private
Icon
$icon
$title
private
string
$title
$type
private
ViewType
$type
Methods
__construct()
public
__construct(string $title, Icon $icon, array<string|int, object> $contents, array<string|int, ViewItem> $fields, ViewType $type) : mixed
Parameters
addField()
public
addField(ViewItem $field) : static
Parameters
- $field : ViewItem
Return values
staticgetFields()
public
getFields() : array<string|int, ViewItem>
Return values
array<string|int, ViewItem>getIcon()
public
getIcon() : Icon
Return values
IcongetTitle()
public
getTitle() : string
Return values
stringgetType()
public
getType() : ViewType
Return values
ViewTypesetIcon()
public
setIcon(Icon $icon) : static
Parameters
- $icon : Icon
Return values
staticsetTitle()
public
setTitle(string $title) : static
Parameters
- $title : string
Return values
staticsetType()
public
setType(ViewType $type) : static
Parameters
- $type : ViewType