<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PassengerDetails StructType
 * @package Dg
 * @subpackage Structs
 */
class DgPassengerDetails extends DgBaseEntity
{
    /**
     * The FlyerCards
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfPassengerFlyerCard
     */
    public $FlyerCards;
    /**
     * The SpecialRequests
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest
     */
    public $SpecialRequests;
    /**
     * Constructor method for PassengerDetails
     * @uses DgPassengerDetails::setFlyerCards()
     * @uses DgPassengerDetails::setSpecialRequests()
     * @param \dgsoft\ArrayType\DgArrayOfPassengerFlyerCard $flyerCards
     * @param \dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest $specialRequests
     */
    public function __construct(\dgsoft\ArrayType\DgArrayOfPassengerFlyerCard $flyerCards = null, \dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest $specialRequests = null)
    {
        $this
            ->setFlyerCards($flyerCards)
            ->setSpecialRequests($specialRequests);
    }
    /**
     * Get FlyerCards value
     * @return \dgsoft\ArrayType\DgArrayOfPassengerFlyerCard|null
     */
    public function getFlyerCards()
    {
        return $this->FlyerCards;
    }
    /**
     * Set FlyerCards value
     * @param \dgsoft\ArrayType\DgArrayOfPassengerFlyerCard $flyerCards
     * @return \dgsoft\StructType\DgPassengerDetails
     */
    public function setFlyerCards(\dgsoft\ArrayType\DgArrayOfPassengerFlyerCard $flyerCards = null)
    {
        $this->FlyerCards = $flyerCards;
        return $this;
    }
    /**
     * Get SpecialRequests value
     * @return \dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest|null
     */
    public function getSpecialRequests()
    {
        return $this->SpecialRequests;
    }
    /**
     * Set SpecialRequests value
     * @param \dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest $specialRequests
     * @return \dgsoft\StructType\DgPassengerDetails
     */
    public function setSpecialRequests(\dgsoft\ArrayType\DgArrayOfPassengerSpecialRequest $specialRequests = null)
    {
        $this->SpecialRequests = $specialRequests;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \dgsoft\StructType\DgPassengerDetails
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
