| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function register(MatcherClass $matcherClass) |
||
| 29 | { |
||
| 30 | $name = $matcherClass->getClassName(); |
||
| 31 | $registerKeyName = lcfirst($name); |
||
| 32 | |||
| 33 | if ($this->has($registerKeyName)) { |
||
| 34 | throw new MatcherAlreadyRegisteredException("{$registerKeyName} is registered"); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->matchers->set($registerKeyName, $matcherClass); |
||
| 38 | } |
||
| 39 | |||
| 52 |