private function getElementSign(Coordinate $coordinate, $debug = false) { if ($debug) { if ($this->battlefield->getFleet()->hasShip($coordinate)) { if (!$this->shootManager->hasHit($coordinate)) { return self::HIT; } } return self::EMPTY_FIELD; } if ($this->shootManager->hasShot($coordinate)) { if ($this->shootManager->hasHit($coordinate)) { return self::HIT; } return self::MISS; } return self::NOT_SHOOT; }