| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 73 | 3 | public function getDiscriminatorClass($value) |
|
| 74 | { |
||
| 75 | 3 | if (!array_key_exists($value, $this->discMap)) { |
|
| 76 | 1 | throw new \InvalidArgumentException(sprintf( |
|
| 77 | 1 | "Discriminator class for value '%s' not specified", |
|
| 78 | $value |
||
| 79 | 1 | )); |
|
| 80 | } |
||
| 81 | |||
| 82 | 3 | return $this->discMap[$value]; |
|
| 83 | } |
||
| 84 | |||
| 92 | } |