mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
refactored Factory Method pattern
This commit is contained in:
8
Creational/FactoryMethod/LoggerFactory.php
Normal file
8
Creational/FactoryMethod/LoggerFactory.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Creational\FactoryMethod;
|
||||
|
||||
interface LoggerFactory
|
||||
{
|
||||
public function createLogger(): Logger;
|
||||
}
|
Reference in New Issue
Block a user