| 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 array $options |
||
| 46 | * |
||
| 47 | * @return self |
||
| 48 | */ |
||
| 49 | public function createWebp(array $options): self |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getSource(): string |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function getTarget(): string |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return mixed[] |
||
| 78 | */ |
||
| 79 | public function getOptions(): array |
||
| 83 | } |
||
| 84 |