| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class ScrollableTag |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param ScrollDirection|null $direction Scroll direction |
||
| 11 | * @param bool|null $allowForward Whether forward scrolling is allowed |
||
| 12 | * @param bool|null $allowBackwards Whether backward scrolling is allowed |
||
| 13 | */ |
||
| 14 | 3 | public function __construct( |
|
| 15 | public ?ScrollDirection $direction = null, |
||
| 16 | public ?bool $allowForward = null, |
||
| 17 | public ?bool $allowBackwards = null, |
||
| 18 | ) { |
||
| 19 | 3 | } |
|
| 20 | |||
| 21 | 3 | public static function fromAmazonRequest(array $amazonRequest): self |
|
| 27 | 3 | ); |
|
| 28 | } |
||
| 30 |