for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MiladRahimi\PhpContainer\Types;
class Singleton
{
/**
* @var mixed
*/
private $concrete;
* Created instance of the concrete
*
private $instance;
* @param mixed $concrete
public function __construct($concrete)
$this->concrete = $concrete;
}
* @return mixed
public function getConcrete()
return $this->concrete;
public function getInstance()
return $this->instance;
* @param mixed $instance
public function setInstance($instance): void
$this->instance = $instance;