Code Duplication    Length = 10-10 lines in 2 locations

src/Amadeus/Client/Struct/DocIssuance/IssueTicket.php 2 locations

@@ 83-92 (lines=10) @@
80
     */
81
    public function __construct(DocIssuanceIssueTicketOptions $options)
82
    {
83
        if (!empty($options->tsts)) {
84
            foreach ($options->tsts as $tst) {
85
                $this->addSelectionItem(
86
                    new ReferenceDetails(
87
                        $tst,
88
                        ReferenceDetails::TYPE_TST
89
                    )
90
                );
91
            }
92
        }
93
94
        $this->loadOverrideDate($options);
95
@@ 147-156 (lines=10) @@
144
            }
145
        }
146
147
        if (!empty($options->segmentTattoos)) {
148
            foreach ($options->segmentTattoos as $segmentTattoo) {
149
                $this->addSelectionItem(
150
                    new ReferenceDetails(
151
                        $segmentTattoo,
152
                        ReferenceDetails::TYPE_SEGMENT_TATTOO
153
                    )
154
                );
155
            }
156
        }
157
    }
158
159
    /**