| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 5 | public static function create(string $requestId, string $timestamp, string $token, int $offsetInMilliseconds, string $locale, Error $error, CurrentPlaybackState $currentPlaybackState): self |
|
| 36 | { |
||
| 37 | 5 | $playbackFailed = new self(); |
|
| 38 | |||
| 39 | 5 | $playbackFailed->type = self::TYPE; |
|
| 40 | 5 | $playbackFailed->error = $error; |
|
| 41 | 5 | $playbackFailed->currentPlaybackState = $currentPlaybackState; |
|
| 42 | 5 | $playbackFailed->setProperties($requestId, $timestamp, $token, $offsetInMilliseconds, $locale); |
|
| 43 | |||
| 44 | 5 | return $playbackFailed; |
|
| 45 | } |
||
| 47 |