1 | <?php |
||
7 | class NegativeLocatorConstraint extends \PHPUnit\Framework\Constraint\Constraint { |
||
8 | |||
9 | protected $_type; |
||
10 | protected $_selector; |
||
11 | protected $_filters; |
||
12 | |||
13 | function __construct($type, $selector, array $filters = array()) |
||
19 | |||
20 | protected function matches($other) |
||
32 | |||
33 | public function failureDescription($other) |
||
55 | |||
56 | /** |
||
57 | * Returns a string representation of the constraint. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function toString() |
||
65 | } |
||
66 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.