<?php

namespace Iben_station\StationStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for READ StationStruct
 * @package Iben_station
 * @subpackage Structs
 */
class Iben_stationREAD extends AbstractStructBase
{
    /**
     * The web_tk
     * @var string
     */
    public $web_tk;
    /**
     * Constructor method for READ
     * @uses Iben_stationREAD::setWeb_tk()
     * @param string $web_tk
     */
    public function __construct($web_tk = null)
    {
        $this
            ->setWeb_tk($web_tk);
    }
    /**
     * Get web_tk value
     * @return string|null
     */
    public function getWeb_tk()
    {
        return $this->web_tk;
    }
    /**
     * Set web_tk value
     * @param string $web_tk
     * @return \Iben_station\StationStruct\Iben_stationREAD
     */
    public function setWeb_tk($web_tk = null)
    {
        // validation for constraint: string
        if (!is_null($web_tk) && !is_string($web_tk)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($web_tk, true), gettype($web_tk)), __LINE__);
        }
        $this->web_tk = $web_tk;
        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 \Iben_station\StationStruct\Iben_stationREAD
     */
    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__;
    }
}
