1 | <?php |
||
5 | class Equality_Comparer extends Comparer { |
||
6 | |||
7 | /** |
||
8 | * Supported comparison signs |
||
9 | * |
||
10 | * @var array<string> |
||
11 | */ |
||
12 | protected $supported_comparison_operators = array( '=', '!=' ); |
||
13 | |||
14 | /** |
||
15 | * Check if comparison is true for $a and $b |
||
16 | * |
||
17 | * @param mixed $a |
||
18 | * @param string $comparison_operator |
||
19 | * @param mixed $b |
||
20 | * @return bool |
||
21 | */ |
||
22 | public function is_correct( $a, $comparison_operator, $b ) { |
||
31 | } |