| 1 | <?php |
||
| 14 | final class FilterPathContainer |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $source; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $target; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var mixed[] |
||
| 28 | */ |
||
| 29 | private $options; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $source |
||
| 33 | * @param string $target |
||
| 34 | * @param mixed[] $options |
||
| 35 | */ |
||
| 36 | public function __construct(string $source, string $target = '', array $options = []) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param array $options |
||
| 45 | * |
||
| 46 | * @return self |
||
| 47 | */ |
||
| 48 | public function createWebp(array $options): self |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getSource(): string |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getTarget(): string |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return mixed[] |
||
| 77 | */ |
||
| 78 | public function getOptions(): array |
||
| 82 | } |
||
| 83 |