| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | trait PreferContextTrait |
||
| 9 | { |
||
| 10 | private $preference = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param $preference |
||
| 14 | * |
||
| 15 | * @throws DomainException |
||
| 16 | */ |
||
| 17 | 514 | private static function assertPreference($preference) |
|
| 25 | } |
||
| 26 | 513 | } |
|
| 27 | |||
| 28 | 513 | public function pushPreference($preference) |
|
| 33 | 513 | } |
|
| 34 | |||
| 35 | 42 | public function popPreference() |
|
| 36 | { |
||
| 37 | 42 | array_pop($this->preference); |
|
| 38 | 42 | } |
|
| 39 | |||
| 40 | 104 | public function getPreference() |
|
| 43 | } |
||
| 44 | } |
||
| 45 |