21 lines
381 B
PHP
21 lines
381 B
PHP
<?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__);
|
|
}
|
|
} |