public function player() { if (!isset($this->player)) { $this->player = new \Player(); } return $this->player; }