Code Duplication    Length = 16-16 lines in 2 locations

src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentGroup.php 1 location

@@ 56-71 (lines=16) @@
53
     *
54
     * @param Segment $options
55
     */
56
    public function __construct($options)
57
    {
58
        $this->segmentInformation = new SegmentInformation(
59
            $options->segmentTattoo,
60
            $options->departureDate,
61
            $options->from,
62
            $options->to,
63
            $options->marketingCompany,
64
            $options->flightNumber,
65
            $options->bookingClass
66
        );
67
68
        $this->loadOptionalSegmentInformation($options);
69
70
        $this->loadInventory($options->inventory);
71
    }
72
73
    /**
74
     * Load non-required options if available

src/Amadeus/Client/Struct/Service/StandaloneCatalogue/FlightInfo.php 1 location

@@ 48-63 (lines=16) @@
45
     *
46
     * @param Segment $options
47
     */
48
    public function __construct($options)
49
    {
50
        $this->flightDetails = new SegmentInformation(
51
            $options->segmentTattoo,
52
            $options->departureDate,
53
            $options->from,
54
            $options->to,
55
            $options->marketingCompany,
56
            $options->flightNumber,
57
            $options->bookingClass
58
        );
59
60
        $this->loadOptionalSegmentInformation($options);
61
62
        SegmentGroup::loadInventory($options->inventory);
63
    }
64
65
    /**
66
     * Load non-required options if available