| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 1 | public function setMaxScore($score) |
|
| 39 | { |
||
| 40 | 1 | if (!$this instanceof MaxScoreAwareInterface) |
|
| 41 | { |
||
| 42 | throw new UnexpectedValueException(sprintf('Class `%s` using `%s` must implement `%s`', get_class($this), __CLASS__, MaxScoreAwareInterface::class)); // @codeCoverageIgnore |
||
| 43 | } |
||
| 44 | 1 | $this->maxScore = floatval($score); |
|
| 45 | 1 | return $this; |
|
| 46 | } |
||
| 47 | |||
| 49 |