<?php

namespace Sabre\ContextChange\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SecurityToken Structs
 * @subpackage Structs
 */
class SecurityToken extends AbstractStructBase
{
    /**
     * The _
     * @var string
     */
    public $_;
    /**
     * The Updated
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $Updated;
    /**
     * Constructor method for SecurityToken
     * @uses SecurityToken::set_()
     * @uses SecurityToken::setUpdated()
     * @param string $_
     * @param bool $updated
     */
    public function __construct($_ = null, $updated = null)
    {
        $this
            ->set_($_)
            ->setUpdated($updated);
    }
    /**
     * Get _ value
     * @return string|null
     */
    public function get_()
    {
        return $this->_;
    }
    /**
     * Set _ value
     * @param string $_
     * @return \Sabre\ContextChange\Structs\SecurityToken
     */
    public function set_($_ = null)
    {
        $this->_ = $_;
        return $this;
    }
    /**
     * Get Updated value
     * @return bool|null
     */
    public function getUpdated()
    {
        return $this->Updated;
    }
    /**
     * Set Updated value
     * @param bool $updated
     * @return \Sabre\ContextChange\Structs\SecurityToken
     */
    public function setUpdated($updated = null)
    {
        $this->Updated = $updated;
        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\ContextChange\Structs\SecurityToken
     */
    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__;
    }
}
