| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class Layout implements \JsonSerializable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param Bind[]|null $bind Array of binding objects |
||
| 13 | * @param string|null $description Optional description of this layout |
||
| 14 | * @param APLBaseComponent|null $item Single component to display |
||
| 15 | * @param APLBaseComponent[]|null $items Array of components to display |
||
| 16 | * @param LayoutParameter[]|null $parameters Array of layout parameters |
||
| 17 | */ |
||
| 18 | 12 | public function __construct( |
|
| 19 | public ?array $bind = null, |
||
| 20 | public ?string $description = null, |
||
| 21 | public ?APLBaseComponent $item = null, |
||
| 22 | public ?array $items = null, |
||
| 23 | public ?array $parameters = null, |
||
| 24 | ) { |
||
| 25 | 12 | } |
|
| 26 | |||
| 27 | 7 | public function jsonSerialize(): array |
|
| 36 | } |
||
| 37 | } |
||
| 38 |