Total Complexity | 1 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Animation |
||
9 | { |
||
10 | /** |
||
11 | * @var int|null |
||
12 | */ |
||
13 | public $repeat; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | public $targetLights = ['1']; |
||
19 | |||
20 | /** |
||
21 | * @var Sequence[] |
||
22 | */ |
||
23 | public $sequence = []; |
||
24 | |||
25 | /** |
||
26 | * @param int $repeat |
||
27 | * @param array $targetLights |
||
28 | * @param Sequence[] $sequence |
||
29 | * |
||
30 | * @return Animation |
||
31 | */ |
||
32 | public static function create(array $sequence, int $repeat=1, array $targetLights = ['1']): self |
||
43 |