holder = $holder; parent::__construct(); } public function getName() : string{ return "Cursor"; } public function getDefaultSize() : int{ return 1; } public function setSize(int $size){ throw new \BadMethodCallException("Cursor can only carry one item at a time"); } /** * This override is here for documentation and code completion purposes only. * @return Player */ public function getHolder(){ return $this->holder; } }