@@ -1,40 +1,40 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -class Gradient implements \JsonSerializable |
|
| 8 | -{ |
|
| 9 | - /** |
|
| 7 | + class Gradient implements \JsonSerializable |
|
| 8 | + { |
|
| 9 | + /** |
|
| 10 | 10 | * @param string[] $colorRange Array of colors for the gradient |
| 11 | 11 | * @param string $description Description of the gradient |
| 12 | 12 | * @param BackgroundType $type Type of gradient (linear or radial) |
| 13 | 13 | * @param float[]|null $inputRange Array of input range values |
| 14 | 14 | * @param int $angle Angle for linear gradients |
| 15 | 15 | */ |
| 16 | - public function __construct( |
|
| 17 | - public array $colorRange, |
|
| 18 | - public string $description = '', |
|
| 19 | - public BackgroundType $type = BackgroundType::LINEAR, |
|
| 20 | - public ?array $inputRange = [], |
|
| 21 | - public int $angle = 0, |
|
| 22 | - ) { |
|
| 23 | - } |
|
| 16 | + public function __construct( |
|
| 17 | + public array $colorRange, |
|
| 18 | + public string $description = '', |
|
| 19 | + public BackgroundType $type = BackgroundType::LINEAR, |
|
| 20 | + public ?array $inputRange = [], |
|
| 21 | + public int $angle = 0, |
|
| 22 | + ) { |
|
| 23 | + } |
|
| 24 | 24 | |
| 25 | - public function jsonSerialize(): array |
|
| 26 | - { |
|
| 27 | - $data = [ |
|
| 28 | - 'description' => $this->description, |
|
| 29 | - 'colorRange' => $this->colorRange, |
|
| 30 | - 'angle' => $this->angle, |
|
| 31 | - 'type' => $this->type, |
|
| 32 | - ]; |
|
| 25 | + public function jsonSerialize(): array |
|
| 26 | + { |
|
| 27 | + $data = [ |
|
| 28 | + 'description' => $this->description, |
|
| 29 | + 'colorRange' => $this->colorRange, |
|
| 30 | + 'angle' => $this->angle, |
|
| 31 | + 'type' => $this->type, |
|
| 32 | + ]; |
|
| 33 | 33 | |
| 34 | - if ($this->inputRange !== null && count($this->inputRange) > 0) { |
|
| 35 | - $data['inputRange'] = $this->inputRange; |
|
| 36 | - } |
|
| 34 | + if ($this->inputRange !== null && count($this->inputRange) > 0) { |
|
| 35 | + $data['inputRange'] = $this->inputRange; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - return $data; |
|
| 39 | - } |
|
| 38 | + return $data; |
|
| 39 | + } |
|
| 40 | 40 | } |
@@ -1,20 +1,20 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum LayoutParameterType: string |
|
| 8 | -{ |
|
| 9 | - case ANY = 'any'; |
|
| 10 | - case ARRAY = 'array'; |
|
| 11 | - case BOOLEAN = 'boolean'; |
|
| 12 | - case COLOR = 'color'; |
|
| 13 | - case COMPONENT = 'component'; |
|
| 14 | - case DIMENSION = 'dimension'; |
|
| 15 | - case INTEGER = 'integer'; |
|
| 16 | - case MAP = 'map'; |
|
| 17 | - case NUMBER = 'number'; |
|
| 18 | - case OBJECT = 'object'; |
|
| 19 | - case STRING = 'string'; |
|
| 7 | + enum LayoutParameterType: string |
|
| 8 | + { |
|
| 9 | + case ANY = 'any'; |
|
| 10 | + case ARRAY = 'array'; |
|
| 11 | + case BOOLEAN = 'boolean'; |
|
| 12 | + case COLOR = 'color'; |
|
| 13 | + case COMPONENT = 'component'; |
|
| 14 | + case DIMENSION = 'dimension'; |
|
| 15 | + case INTEGER = 'integer'; |
|
| 16 | + case MAP = 'map'; |
|
| 17 | + case NUMBER = 'number'; |
|
| 18 | + case OBJECT = 'object'; |
|
| 19 | + case STRING = 'string'; |
|
| 20 | 20 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum BackgroundType: string |
|
| 8 | -{ |
|
| 9 | - case LINEAR = 'linear'; |
|
| 10 | - case RADIAL = 'radial'; |
|
| 7 | + enum BackgroundType: string |
|
| 8 | + { |
|
| 9 | + case LINEAR = 'linear'; |
|
| 10 | + case RADIAL = 'radial'; |
|
| 11 | 11 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum SecureInputType: string |
|
| 8 | -{ |
|
| 9 | - case DECIMAL_PAD = 'decimalPad'; |
|
| 10 | - case NORMAL = 'normal'; |
|
| 11 | - case NUMBER_PAD = 'numberPad'; |
|
| 7 | + enum SecureInputType: string |
|
| 8 | + { |
|
| 9 | + case DECIMAL_PAD = 'decimalPad'; |
|
| 10 | + case NORMAL = 'normal'; |
|
| 11 | + case NUMBER_PAD = 'numberPad'; |
|
| 12 | 12 | } |
@@ -1,13 +1,13 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum ScaleType: string |
|
| 8 | -{ |
|
| 9 | - case NONE = 'none'; |
|
| 10 | - case GROW = 'grow'; |
|
| 11 | - case SHRINK = 'shrink'; |
|
| 12 | - case STRETCH = 'stretch'; |
|
| 7 | + enum ScaleType: string |
|
| 8 | + { |
|
| 9 | + case NONE = 'none'; |
|
| 10 | + case GROW = 'grow'; |
|
| 11 | + case SHRINK = 'shrink'; |
|
| 12 | + case STRETCH = 'stretch'; |
|
| 13 | 13 | } |
@@ -1,15 +1,15 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum KeyboardType: string |
|
| 8 | -{ |
|
| 9 | - case DECIMAL_PAD = 'decimalPad'; |
|
| 10 | - case NORMAL = 'normal'; |
|
| 11 | - case NUMBER_PAD = 'numberPad'; |
|
| 12 | - case EMAIL_ADDRESS = 'emailAddress'; |
|
| 13 | - case PHONE_PAD = 'phonePad'; |
|
| 14 | - case URL = 'url'; |
|
| 7 | + enum KeyboardType: string |
|
| 8 | + { |
|
| 9 | + case DECIMAL_PAD = 'decimalPad'; |
|
| 10 | + case NORMAL = 'normal'; |
|
| 11 | + case NUMBER_PAD = 'numberPad'; |
|
| 12 | + case EMAIL_ADDRESS = 'emailAddress'; |
|
| 13 | + case PHONE_PAD = 'phonePad'; |
|
| 14 | + case URL = 'url'; |
|
| 15 | 15 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum StrokeLineCap: string |
|
| 8 | -{ |
|
| 9 | - case BUTT = 'butt'; |
|
| 10 | - case ROUND = 'round'; |
|
| 11 | - case SQUARE = 'square'; |
|
| 7 | + enum StrokeLineCap: string |
|
| 8 | + { |
|
| 9 | + case BUTT = 'butt'; |
|
| 10 | + case ROUND = 'round'; |
|
| 11 | + case SQUARE = 'square'; |
|
| 12 | 12 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum StrokeLineJoin: string |
|
| 8 | -{ |
|
| 9 | - case BEVEL = 'bevel'; |
|
| 10 | - case MITER = 'miter'; |
|
| 11 | - case ROUND = 'round'; |
|
| 7 | + enum StrokeLineJoin: string |
|
| 8 | + { |
|
| 9 | + case BEVEL = 'bevel'; |
|
| 10 | + case MITER = 'miter'; |
|
| 11 | + case ROUND = 'round'; |
|
| 12 | 12 | } |
@@ -1,13 +1,13 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum GestureType: string |
|
| 8 | -{ |
|
| 9 | - case DOUBLE_PRESS = 'DoublePress'; |
|
| 10 | - case LONG_PRESS = 'LongPress'; |
|
| 11 | - case SWIPE_AWAY = 'SwipeAway'; |
|
| 12 | - case TAP = 'Tap'; |
|
| 7 | + enum GestureType: string |
|
| 8 | + { |
|
| 9 | + case DOUBLE_PRESS = 'DoublePress'; |
|
| 10 | + case LONG_PRESS = 'LongPress'; |
|
| 11 | + case SWIPE_AWAY = 'SwipeAway'; |
|
| 12 | + case TAP = 'Tap'; |
|
| 13 | 13 | } |