| 1 | <?php |
||
| 21 | final class BlockFactory implements BlockFactoryInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var FactoryInterface |
||
| 25 | */ |
||
| 26 | private $factory; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param FactoryInterface $factory |
||
| 30 | */ |
||
| 31 | public function __construct(FactoryInterface $factory) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function createWithType(string $type): BlockInterface |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function createNew(): BlockInterface |
||
| 58 | } |
||
| 59 |