mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 17:21:19 +02:00
17 lines
309 B
PHP
17 lines
309 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
class WinWriterFactory implements WriterFactory
|
|
{
|
|
public function createCsvWriter(): CsvWriter
|
|
{
|
|
return new WinCsvWriter();
|
|
}
|
|
|
|
public function createJsonWriter(): JsonWriter
|
|
{
|
|
return new WinJsonWriter();
|
|
}
|
|
}
|