| Total Complexity | 1 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Pattern |
||
| 9 | { |
||
| 10 | const ACTION_DOWN = 'down'; |
||
| 11 | const ACTION_UP = 'up'; |
||
| 12 | const ACTION_SILENCE = 'silence'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | public $gadgetIds = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | public $colors = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string|null |
||
| 26 | */ |
||
| 27 | public $action; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string|null $action |
||
| 31 | * @param array $gadgetIds |
||
| 32 | * @param array $colors |
||
| 33 | * |
||
| 34 | * @return Pattern |
||
| 35 | */ |
||
| 36 | public static function create(string $action = null, array $gadgetIds = [], array $colors = []): self |
||
| 47 |