| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Metadata implements \JsonSerializable |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string|null |
||
| 14 | */ |
||
| 15 | public $title; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string|null |
||
| 19 | */ |
||
| 20 | public $subtitle; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Image|null |
||
| 24 | */ |
||
| 25 | public $art; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Image|null |
||
| 29 | */ |
||
| 30 | public $backgroundImage; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string|null $title |
||
| 34 | * @param string|null $subtitle |
||
| 35 | * @param Image|null $art |
||
| 36 | * @param Image|null $backgroundImage |
||
| 37 | * |
||
| 38 | * @return Metadata |
||
| 39 | */ |
||
| 40 | public static function create(string $title = null, string $subtitle = null, Image $art = null, Image $backgroundImage = null): self |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function jsonSerialize() |
||
| 75 |