1 | <?php |
||
15 | final class FilterPathContainer |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $source; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $target; |
||
26 | |||
27 | /** |
||
28 | * @var mixed[] |
||
29 | */ |
||
30 | private $options; |
||
31 | |||
32 | /** |
||
33 | * @param string $source |
||
34 | * @param string $target |
||
35 | * @param mixed[] $options |
||
36 | */ |
||
37 | public function __construct(string $source, string $target = '', array $options = []) |
||
43 | |||
44 | /** |
||
45 | * @param int $quality |
||
46 | * |
||
47 | * @return self |
||
48 | */ |
||
49 | public function createWebp(int $quality): self |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getSource(): string |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getTarget(): string |
||
76 | |||
77 | /** |
||
78 | * @return mixed[] |
||
79 | */ |
||
80 | public function getOptions(): array |
||
84 | } |
||
85 |