We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 40% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | final class Equals extends AbstractRule |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var mixed |
||
| 26 | */ |
||
| 27 | private $compareTo; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Initializes the rule. |
||
| 31 | * |
||
| 32 | * @param mixed $compareTo |
||
| 33 | */ |
||
| 34 | public function __construct($compareTo) |
||
| 35 | { |
||
| 36 | $this->compareTo = $compareTo; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 7 | public function validate($input): bool |
|
| 45 | } |
||
| 46 | } |
||
| 47 |