| 1 | <?php |
||
| 21 | final class ChannelFactory implements ChannelFactoryInterface |
||
| 22 | { |
||
| 23 | /** @var FactoryInterface */ |
||
| 24 | private $decoratedFactory; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | private $defaultCalculationStrategy; |
||
| 28 | |||
| 29 | public function __construct(FactoryInterface $decoratedFactory, string $defaultCalculationStrategy) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function createNew(): ChannelInterface |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return CoreChannelInterface |
||
| 49 | */ |
||
| 50 | public function createNamed(string $name): ChannelInterface |
||
| 57 | } |
||
| 58 |