<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for FreeBaggageAllowancesTypes StructType
 * @package Dg
 * @subpackage Structs
 */
class DgFreeBaggageAllowancesTypes extends AbstractStructBase
{
    /**
     * The FreeBaggageAllowance
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes
     */
    public $FreeBaggageAllowance;
    /**
     * The Errors
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgErrorsType
     */
    public $Errors;
    /**
     * Constructor method for FreeBaggageAllowancesTypes
     * @uses DgFreeBaggageAllowancesTypes::setFreeBaggageAllowance()
     * @uses DgFreeBaggageAllowancesTypes::setErrors()
     * @param \dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes $freeBaggageAllowance
     * @param \dgsoft\StructType\DgErrorsType $errors
     */
    public function __construct(\dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes $freeBaggageAllowance = null, \dgsoft\StructType\DgErrorsType $errors = null)
    {
        $this
            ->setFreeBaggageAllowance($freeBaggageAllowance)
            ->setErrors($errors);
    }
    /**
     * Get FreeBaggageAllowance value
     * @return \dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes|null
     */
    public function getFreeBaggageAllowance()
    {
        return $this->FreeBaggageAllowance;
    }
    /**
     * Set FreeBaggageAllowance value
     * @param \dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes $freeBaggageAllowance
     * @return \dgsoft\StructType\DgFreeBaggageAllowancesTypes
     */
    public function setFreeBaggageAllowance(\dgsoft\ArrayType\DgArrayOfFreeBaggageAllowanceTypes $freeBaggageAllowance = null)
    {
        $this->FreeBaggageAllowance = $freeBaggageAllowance;
        return $this;
    }
    /**
     * Get Errors value
     * @return \dgsoft\StructType\DgErrorsType|null
     */
    public function getErrors()
    {
        return $this->Errors;
    }
    /**
     * Set Errors value
     * @param \dgsoft\StructType\DgErrorsType $errors
     * @return \dgsoft\StructType\DgFreeBaggageAllowancesTypes
     */
    public function setErrors(\dgsoft\StructType\DgErrorsType $errors = null)
    {
        $this->Errors = $errors;
        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\DgFreeBaggageAllowancesTypes
     */
    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__;
    }
}
