| 1 | <?php |
||
| 23 | trait MatcherLookupTable |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Dictionary of matcher class. |
||
| 27 | * |
||
| 28 | * @var \expect\Dictionary |
||
| 29 | */ |
||
| 30 | private $matchers; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function has($name) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Find the matcher class by name. |
||
| 42 | * Returns true if it is not found. |
||
| 43 | * |
||
| 44 | * @param string $name macther name |
||
| 45 | * |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | public function hasNot($name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function get($name) |
||
| 66 | } |
||
| 67 |