left); } public function getLeft() : Position{ return $this->left; } public function getRight() : Position{ return $this->right; } protected function doBlockEffects(bool $isOpen) : void{ $this->animateBlock($this->left, $isOpen); $this->animateBlock($this->right, $isOpen); $this->playSound($this->left, $isOpen); $this->playSound($this->right, $isOpen); } }