| 1 | <?php |
||
| 16 | final class CompressionMethodManagerFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var CompressionMethodInterface[] |
||
| 20 | */ |
||
| 21 | private $compressionMethods = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $alias |
||
| 25 | * @param CompressionMethodInterface $compressionMethod |
||
| 26 | * |
||
| 27 | * @return CompressionMethodManagerFactory |
||
| 28 | */ |
||
| 29 | public function add(string $alias, CompressionMethodInterface $compressionMethod): CompressionMethodManagerFactory |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string[] $aliases |
||
| 41 | * |
||
| 42 | * @return CompressionMethodManager |
||
| 43 | */ |
||
| 44 | public function create(array $aliases): CompressionMethodManager |
||
| 57 | } |
||
| 58 |