public static getInstance ( ) : self | ||
return | self |
public static function getInstance() : self
{
static $instance = null;
if (null === $instance) {
$instance = new self();
}
return $instance;
}