Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
14.29% |
1 / 7 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| CollectionListMeta | |
14.29% |
1 / 7 |
|
50.00% |
1 / 2 |
4.52 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| array | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray; |
| 6 | |
| 7 | final class CollectionListMeta |
| 8 | { |
| 9 | public function __construct( |
| 10 | public bool $showPublished = true, |
| 11 | public bool $showLocked = false, |
| 12 | public bool $showHidden = false, |
| 13 | public bool $showChildren = false, |
| 14 | ) {} |
| 15 | |
| 16 | public function array(): array |
| 17 | { |
| 18 | return [ |
| 19 | 'showPublished' => $this->showPublished, |
| 20 | 'showLocked' => $this->showLocked, |
| 21 | 'showHidden' => $this->showHidden, |
| 22 | 'showChildren' => $this->showChildren, |
| 23 | ]; |
| 24 | } |
| 25 | } |