/** * {@inheritDoc} */ public function onRoverMove(Rover $rover) { if (!$this->validateCoordinates($rover->getX(), $rover->getY())) { throw new \Exception(sprintf('Rover went out of planet\'s bounds (%d, %d)', $rover->getX(), $rover->getY())); } }