| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function getPrefix($role) |
||
| 41 | { |
||
| 42 | if (!array_key_exists($role, $this->roleMap)) { |
||
| 43 | throw new DocumentManagerException(sprintf( |
||
| 44 | 'Trying to get non-existant namespace alias role "%s", known roles: "%s"', |
||
| 45 | $role, implode('", "', array_keys($this->roleMap)) |
||
| 46 | )); |
||
| 47 | } |
||
| 48 | |||
| 49 | return $this->roleMap[$role]; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |