1 | <?php |
||
16 | final class Stack implements StackInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $dataLoader; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $quality; |
||
32 | |||
33 | /** |
||
34 | * @var FilterInterface[] |
||
35 | */ |
||
36 | private $filters = []; |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param string|null $dataLoader name of a custom data loader. Default value: filesystem (which means the standard filesystem loader is used). |
||
41 | * @param int|null $quality |
||
42 | * @param FilterInterface[] $filters |
||
43 | */ |
||
44 | public function __construct(string $name, string $dataLoader = null, int $quality = null, array $filters) |
||
51 | |||
52 | public function getName(): string |
||
56 | |||
57 | public function getDataLoader(): ?string |
||
61 | |||
62 | public function getQuality(): ?int |
||
66 | |||
67 | /** |
||
68 | * @return FilterInterface[] |
||
69 | */ |
||
70 | public function getFilters(): array |
||
74 | |||
75 | /** |
||
76 | * @param FilterInterface[] $filters |
||
77 | */ |
||
78 | private function setFilters(array $filters): void |
||
87 | } |
||
88 |