public function getFlights($onlyFirstAgentPerItinerary = true): array
    {
        if ($this->init()) {
            $this->flights = [];
            $this->addItineraries($onlyFirstAgentPerItinerary);
            $this->beautifyFlights($onlyFirstAgentPerItinerary);
        } else {
            $this->printErrorMessage($this->getResponseMessage());
        }
        return $this->flights;
    }