Code Duplication    Length = 32-32 lines in 2 locations

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

@@ 35-66 (lines=32) @@
32
 * @package Amadeus\Client\Struct\Fare\InformativePricing13
33
 * @author Dieter Devlieghere <[email protected]>
34
 */
35
class SegmentInformation extends TravelProductInformation
36
{
37
    /**
38
     * @var int
39
     */
40
    public $itemNumber;
41
42
    /**
43
     * SegmentInformation constructor.
44
     *
45
     * @param int $itemNumber
46
     * @param \DateTime $departureDate
47
     * @param string $from
48
     * @param string $to
49
     * @param string $company
50
     * @param string $flightNumber
51
     * @param string $bookingClass
52
     */
53
    public function __construct(
54
        $itemNumber,
55
        \DateTime $departureDate,
56
        $from,
57
        $to,
58
        $company,
59
        $flightNumber,
60
        $bookingClass
61
    ) {
62
        $this->itemNumber = $itemNumber;
63
64
        parent::__construct($departureDate, $from, $to, $company, $flightNumber, $bookingClass);
65
    }
66
}
67

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

@@ 35-66 (lines=32) @@
32
 * @package Amadeus\Client\Struct\Fare\InformativePricing13
33
 * @author Dieter Devlieghere <[email protected]>
34
 */
35
class SegmentInformation extends TravelProductInformation
36
{
37
    /**
38
     * @var int
39
     */
40
    public $itemNumber;
41
42
    /**
43
     * SegmentInformation constructor.
44
     *
45
     * @param int $itemNumber
46
     * @param \DateTime $departureDate
47
     * @param string $from
48
     * @param string $to
49
     * @param string $company
50
     * @param string $flightNumber
51
     * @param string $bookingClass
52
     */
53
    public function __construct(
54
        $itemNumber,
55
        \DateTime $departureDate,
56
        $from,
57
        $to,
58
        $company,
59
        $flightNumber,
60
        $bookingClass
61
    ) {
62
        $this->itemNumber = $itemNumber;
63
64
        parent::__construct($departureDate, $from, $to, $company, $flightNumber, $bookingClass);
65
    }
66
}
67