Factory Method

This commit is contained in:
2025-07-03 19:35:54 +03:00
parent 91f8ded888
commit 0f4618edf5
24 changed files with 409 additions and 31 deletions

View File

@@ -0,0 +1,21 @@
<?php
/**
* @package: patterns
* @author: Yevhen Odynets
* @date: 2025-07-03
* @time: 10:22
*/
//phpcs:ignore
declare(strict_types = 1);
namespace Pattern\Creational\Singleton;
class Single extends Singleton implements SingleInterface
{
public function childish(): void
{
/** @noinspection ForgottenDebugOutputInspection */
dump(__METHOD__);
}
}