Adapter
This commit is contained in:
@@ -14,4 +14,4 @@ namespace Pattern\Creational\Singleton;
|
||||
interface Loggable
|
||||
{
|
||||
public static function getInstance(): static;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
//phpcs:ignore
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace Pattern\Creational\Singleton;
|
||||
|
||||
class Single extends Singleton implements SingleInterface
|
||||
@@ -18,4 +19,4 @@ class Single extends Singleton implements SingleInterface
|
||||
/** @noinspection ForgottenDebugOutputInspection */
|
||||
dump(__METHOD__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,5 +101,3 @@ class Singleton
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user