1 | <?php |
||
14 | final class Set |
||
15 | { |
||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | private $name; |
||
20 | |||
21 | /** |
||
22 | * @var int|null |
||
23 | */ |
||
24 | private $encore; |
||
25 | |||
26 | /** |
||
27 | * @var Song[] |
||
28 | */ |
||
29 | private $songs; |
||
30 | |||
31 | /** |
||
32 | * @param Song[] $songs |
||
33 | */ |
||
34 | public function __construct(?string $name, ?int $encore, array $songs) |
||
40 | |||
41 | public function getName(): ?string |
||
45 | |||
46 | public function getEncore(): ?int |
||
50 | |||
51 | /** |
||
52 | * @return Song[] |
||
53 | */ |
||
54 | public function getSongs(): array |
||
58 | |||
59 | /** |
||
60 | * @return Set |
||
61 | */ |
||
62 | public static function fromApi(array $data): self |
||
76 | } |
||
77 |