for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MaxBeckers\AmazonAlexa\Response\Directives\GadgetController;
class Parameters
{
public const TRIGGER_EVENT_BUTTON_DOWN = 'buttonDown';
public const TRIGGER_EVENT_BUTTON_UP = 'buttonUp';
public const TRIGGER_EVENT_NONE = 'none';
/** @param Animation[] $animations */
public function __construct(
public ?string $triggerEvent = null,
public ?int $triggerEventTimeMs = null,
public array $animations = []
) {
}
public static function create(array $animations, string $triggerEvent = self::TRIGGER_EVENT_NONE, int $triggerEventTimeMs = 0): self
return new self($triggerEvent, $triggerEventTimeMs, $animations);