<?php

namespace Sabre\TravelItineraryRead\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Metadata Structs
 * @subpackage Structs
 */
class Metadata extends AbstractStructBase
{
    /**
     * The DisplayIndex
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $DisplayIndex;
    /**
     * Constructor method for Metadata
     * @uses Metadata::setDisplayIndex()
     * @param int $displayIndex
     */
    public function __construct($displayIndex = null)
    {
        $this
            ->setDisplayIndex($displayIndex);
    }
    /**
     * Get DisplayIndex value
     * @return int|null
     */
    public function getDisplayIndex()
    {
        return $this->DisplayIndex;
    }
    /**
     * Set DisplayIndex value
     * @param int $displayIndex
     * @return \Sabre\TravelItineraryRead\Structs\Metadata
     */
    public function setDisplayIndex($displayIndex = null)
    {
        $this->DisplayIndex = $displayIndex;
        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\TravelItineraryRead\Structs\Metadata
     */
    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__;
    }
}
