Code Duplication    Length = 34-44 lines in 2 locations

src/Amadeus/Client/Struct/Ticket/RefDetails.php 1 location

@@ 31-74 (lines=44) @@
28
 * @package Amadeus\Client\Struct\Ticket
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class RefDetails
32
{
33
    /**
34
     * Passenger/traveller reference number
35
     */
36
    const QUAL_PASSENGER = "P";
37
    /**
38
     * Passenger reference number - Adult
39
     */
40
    const QUAL_ADULT = "PA";
41
    /**
42
     * Passenger reference number - Infant
43
     */
44
    const QUAL_INFANT = "PI";
45
    /**
46
     * Segment/service reference number
47
     */
48
    const QUAL_SEGMENT_REFERENCE = "S";
49
50
51
    /**
52
     * self::QUAL_*
53
     *
54
     * @var string
55
     */
56
    public $refQualifier;
57
58
    /**
59
     * @var int
60
     */
61
    public $refNumber;
62
63
    /**
64
     * RefDetails constructor.
65
     *
66
     * @param int $segNum
67
     * @param string $segQual self::QUAL_*
68
     */
69
    public function __construct($segNum, $segQual)
70
    {
71
        $this->refNumber = $segNum;
72
        $this->refQualifier = $segQual;
73
    }
74
}
75

src/Amadeus/Client/Struct/MiniRule/ReferenceDetails.php 1 location

@@ 32-65 (lines=34) @@
29
 * @package Amadeus\Client\Struct\MiniRule
30
 * @author Aleksandr Kalugin <[email protected]>
31
 */
32
class ReferenceDetails
33
{
34
    const REFERENCE_TYPE_PAX = 'P';
35
36
    const REFERENCE_TYPE_ADULT_PASSENGER = "PA";
37
38
    const REFERENCE_TYPE_INFANT_PASSENGER = "PI";
39
40
    const REFERENCE_TYPE_SEGMENT = 'S';
41
42
    /**
43
     * self::TYPE_*
44
     *
45
     * @var string
46
     */
47
    public $type;
48
49
    /**
50
     * @var int|string
51
     */
52
    public $value;
53
54
    /**
55
     * ReferenceDetails constructor.
56
     *
57
     * @param string $type
58
     * @param int|string $value
59
     */
60
    public function __construct($type, $value)
61
    {
62
        $this->type = $type;
63
        $this->value = $value;
64
    }
65
}
66