<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ElapsedTime Structs
 * Meta informations extracted from the WSDL
 * - documentation: Prefer itineraries with shorter travel times
 * @subpackage Structs
 */
class ElapsedTime extends AbstractStructBase
{
    /**
     * The Priority
     * Meta informations extracted from the WSDL
     * - use: required
     * - maxInclusive: 9
     * - minInclusive: 1
     * @var int
     */
    public $Priority;
    /**
     * Constructor method for ElapsedTime
     * @uses ElapsedTime::setPriority()
     * @param int $priority
     */
    public function __construct($priority = null)
    {
        $this
            ->setPriority($priority);
    }
    /**
     * Get Priority value
     * @return int
     */
    public function getPriority()
    {
        return $this->Priority;
    }
    /**
     * Set Priority value
     * @param int $priority
     * @return \Sabre\BargainFinderMax\Structs\ElapsedTime
     */
    public function setPriority($priority = null)
    {
        $this->Priority = $priority;
        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 \Sabre\BargainFinderMax\Structs\ElapsedTime
     */
    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__;
    }
}
