<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VehicleVendorAvailabilityTypeVehAvailsVehAvail StructType
 * @package Dg
 * @subpackage Structs
 */
class DgVehicleVendorAvailabilityTypeVehAvailsVehAvail extends AbstractStructBase
{
    /**
     * The VehAvailCore
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgVehicleAvailCoreType
     */
    public $VehAvailCore;
    /**
     * The VehAvailInfo
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgVehicleAvailAdditionalInfoType
     */
    public $VehAvailInfo;
    /**
     * The AdvanceBooking
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking
     */
    public $AdvanceBooking;
    /**
     * The VehicleId
     * @var int
     */
    public $VehicleId;
    /**
     * Constructor method for VehicleVendorAvailabilityTypeVehAvailsVehAvail
     * @uses DgVehicleVendorAvailabilityTypeVehAvailsVehAvail::setVehAvailCore()
     * @uses DgVehicleVendorAvailabilityTypeVehAvailsVehAvail::setVehAvailInfo()
     * @uses DgVehicleVendorAvailabilityTypeVehAvailsVehAvail::setAdvanceBooking()
     * @uses DgVehicleVendorAvailabilityTypeVehAvailsVehAvail::setVehicleId()
     * @param \dgsoft\StructType\DgVehicleAvailCoreType $vehAvailCore
     * @param \dgsoft\StructType\DgVehicleAvailAdditionalInfoType $vehAvailInfo
     * @param \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking $advanceBooking
     * @param int $vehicleId
     */
    public function __construct(\dgsoft\StructType\DgVehicleAvailCoreType $vehAvailCore = null, \dgsoft\StructType\DgVehicleAvailAdditionalInfoType $vehAvailInfo = null, \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking $advanceBooking = null, $vehicleId = null)
    {
        $this
            ->setVehAvailCore($vehAvailCore)
            ->setVehAvailInfo($vehAvailInfo)
            ->setAdvanceBooking($advanceBooking)
            ->setVehicleId($vehicleId);
    }
    /**
     * Get VehAvailCore value
     * @return \dgsoft\StructType\DgVehicleAvailCoreType|null
     */
    public function getVehAvailCore()
    {
        return $this->VehAvailCore;
    }
    /**
     * Set VehAvailCore value
     * @param \dgsoft\StructType\DgVehicleAvailCoreType $vehAvailCore
     * @return \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvail
     */
    public function setVehAvailCore(\dgsoft\StructType\DgVehicleAvailCoreType $vehAvailCore = null)
    {
        $this->VehAvailCore = $vehAvailCore;
        return $this;
    }
    /**
     * Get VehAvailInfo value
     * @return \dgsoft\StructType\DgVehicleAvailAdditionalInfoType|null
     */
    public function getVehAvailInfo()
    {
        return $this->VehAvailInfo;
    }
    /**
     * Set VehAvailInfo value
     * @param \dgsoft\StructType\DgVehicleAvailAdditionalInfoType $vehAvailInfo
     * @return \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvail
     */
    public function setVehAvailInfo(\dgsoft\StructType\DgVehicleAvailAdditionalInfoType $vehAvailInfo = null)
    {
        $this->VehAvailInfo = $vehAvailInfo;
        return $this;
    }
    /**
     * Get AdvanceBooking value
     * @return \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking|null
     */
    public function getAdvanceBooking()
    {
        return $this->AdvanceBooking;
    }
    /**
     * Set AdvanceBooking value
     * @param \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking $advanceBooking
     * @return \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvail
     */
    public function setAdvanceBooking(\dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvailAdvanceBooking $advanceBooking = null)
    {
        $this->AdvanceBooking = $advanceBooking;
        return $this;
    }
    /**
     * Get VehicleId value
     * @return int|null
     */
    public function getVehicleId()
    {
        return $this->VehicleId;
    }
    /**
     * Set VehicleId value
     * @param int $vehicleId
     * @return \dgsoft\StructType\DgVehicleVendorAvailabilityTypeVehAvailsVehAvail
     */
    public function setVehicleId($vehicleId = null)
    {
        // validation for constraint: int
        if (!is_null($vehicleId) && !is_numeric($vehicleId)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($vehicleId)), __LINE__);
        }
        $this->VehicleId = $vehicleId;
        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\DgVehicleVendorAvailabilityTypeVehAvailsVehAvail
     */
    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__;
    }
}
