| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class Required implements RuleInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var mixed Received value. |
||
| 23 | */ |
||
| 24 | private $received; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var bool Expected value, not used. |
||
| 28 | */ |
||
| 29 | private $expected; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Class constructor. |
||
| 33 | * |
||
| 34 | * @param mixed $received |
||
| 35 | * @param bool $expected |
||
| 36 | */ |
||
| 37 | public function __construct($received, $expected) |
||
| 38 | { |
||
| 39 | $this->received = $received; |
||
| 40 | $this->expected = $expected; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Test. |
||
| 45 | * |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | public function test(): bool |
||
| 57 | } |
||
| 58 | } |
||
| 59 |