| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function getRelationType($labelEvent) |
||
| 34 | { |
||
| 35 | if ($this->eventTypeSpecification->isSatisfiedBy($labelEvent)) { |
||
| 36 | $offerType = RelationType::EVENT(); |
||
| 37 | } else if ($this->placeTypeSpecification->isSatisfiedBy($labelEvent)) { |
||
| 38 | $offerType = RelationType::PLACE(); |
||
| 39 | } else { |
||
| 40 | $message = $this->createIllegalArgumentMessage($labelEvent); |
||
| 41 | throw new \InvalidArgumentException($message); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $offerType; |
||
| 45 | } |
||
| 46 | |||
| 56 |