mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 04:00:18 +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:
8
Creational/AbstractFactory/JsonWriter.php
Normal file
8
Creational/AbstractFactory/JsonWriter.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
interface JsonWriter
|
||||
{
|
||||
public function write(array $data, bool $formatted): string;
|
||||
}
|
Reference in New Issue
Block a user