| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | protected function addProvider($endpoint) |
||
| 52 | { |
||
| 53 | $className = self::ENDPOINTS_NAMESPACE . ucfirst($endpoint); |
||
| 54 | |||
| 55 | if (!class_exists($className)) { |
||
| 56 | throw new BadEndpointException("Endpoint $className not found."); |
||
| 57 | } |
||
| 58 | |||
| 59 | $this->endpoints[$endpoint] = $this->buildEndpoint($className); |
||
| 60 | } |
||
| 61 | |||
| 70 | } |