Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| HasQueryProperties | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Controller; |
| 6 | |
| 7 | trait HasQueryProperties |
| 8 | { |
| 9 | private ?bool $_map; |
| 10 | private ?string $_query; |
| 11 | private ?bool $_published; |
| 12 | private ?bool $_hidden; |
| 13 | private ?bool $_deleted; |
| 14 | private ?bool $_content; |
| 15 | private array $_uids; |
| 16 | private string $_order; |
| 17 | private array $_fields; |
| 18 | public ?bool $map { |
| 19 | get => $this->_map; |
| 20 | } |
| 21 | public ?string $query { |
| 22 | get => $this->_query; |
| 23 | } |
| 24 | public ?bool $published { |
| 25 | get => $this->_published; |
| 26 | } |
| 27 | public ?bool $hidden { |
| 28 | get => $this->_hidden; |
| 29 | } |
| 30 | public ?bool $deleted { |
| 31 | get => $this->_deleted; |
| 32 | } |
| 33 | public ?bool $content { |
| 34 | get => $this->_content; |
| 35 | } |
| 36 | public array $uids { |
| 37 | get => $this->_uids; |
| 38 | } |
| 39 | public string $order { |
| 40 | get => $this->_order; |
| 41 | } |
| 42 | public array $fields { |
| 43 | get => $this->_fields; |
| 44 | } |
| 45 | } |