1 2 3 4 5 6
var_dump(Client::getInstance()); if ( $this->client == null ) { //return true $this->client = Client::getInstance(); //not called } var_dump($this->client); // $this->client == null return false