mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-02 09:19:38 +02:00
Abstract factory (#366)
* rewrite of the Abstract Factory pattern * update composer deps * fixed argument to json_encode which cannot be null
This commit is contained in:
9
Creational/AbstractFactory/WriterFactory.php
Normal file
9
Creational/AbstractFactory/WriterFactory.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
interface WriterFactory
|
||||
{
|
||||
public function createCsvWriter(): CsvWriter;
|
||||
public function createJsonWriter(): JsonWriter;
|
||||
}
|
Reference in New Issue
Block a user