Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function getContent(): Content |
||
50 | { |
||
51 | if (!$this->hasContent()) { |
||
52 | throw new UnexpectedValueException(sprintf('Return value is not set or not a type of %s. Check hasContent() or set it by setContent() before you call getter.', Content::class)); |
||
53 | } |
||
54 | |||
55 | return $this->content; |
||
56 | } |
||
57 | |||
68 |