/** * @param Session $session * @param FortData $data */ public function __construct(Session $session, FortData $data) { if ($data->getType() != FortType::CHECKPOINT()) { throw new InvalidArgumentException("Fort not a pokestop"); } parent::__construct($session, $data); // TODO: modifier // TODO: lure // TODO: sponsor (maybe) }
/** * @param Session $session * @param FortData $data */ public function __construct(Session $session, FortData $data) { if (!is_null($data->getType()) && $data->getType() != FortType::GYM()) { throw new InvalidArgumentException("Fort not a gym"); } parent::__construct($session, $data); // TODO: team color // TODO: highest cp pokemon // TODO: xp // TODO: in battle }