| Total Complexity | 1 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Parameters |
||
| 9 | { |
||
| 10 | const TRIGGER_EVENT_BUTTON_DOWN = 'buttonDown'; |
||
| 11 | const TRIGGER_EVENT_BUTTON_UP = 'buttonUp'; |
||
| 12 | const TRIGGER_EVENT_NONE = 'none'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string|null |
||
| 16 | */ |
||
| 17 | public $triggerEvent; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int|null |
||
| 21 | */ |
||
| 22 | public $triggerEventTimeMs; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Animations|null |
||
| 26 | */ |
||
| 27 | public $animations; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $triggerEvent |
||
| 31 | * @param int $triggerEventTimeMs |
||
| 32 | * @param Animations|null $animations |
||
| 33 | * |
||
| 34 | * @return Parameters |
||
| 35 | */ |
||
| 36 | public static function create(string $triggerEvent = self::TRIGGER_EVENT_NONE, int $triggerEventTimeMs = 0, Animations $animations = null): self |
||
| 47 |