<?php
namespace App\Utils\BaseParser\Structure\StructureParser\Types; abstract class Passengers extends \App\Utils\BaseParser\Structure\StructureParser\Types\BaseAbstract { public $passengers = []; public function append(\App\Utils\BaseParser\Structure\StructureParser\Types\Passenger $item) { $this->passengers[] = $item; } public function getOwner() { return reset($this->passengers); } } 