<?php

namespace Cocorico\EdnBundle\Wsdl;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getRelayResponse StructType
 * @subpackage Structs
 */
class GetRelayResponse extends AbstractStructBase
{
    /**
     * The relay
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Cocorico\EdnBundle\Wsdl\RelayType
     */
    public $relay;
    /**
     * Constructor method for getRelayResponse
     * @uses GetRelayResponse::setRelay()
     * @param \Cocorico\EdnBundle\Wsdl\RelayType $relay
     */
    public function __construct(\Cocorico\EdnBundle\Wsdl\RelayType $relay = null)
    {
        $this
            ->setRelay($relay);
    }
    /**
     * Get relay value
     * @return \Cocorico\EdnBundle\Wsdl\RelayType|null
     */
    public function getRelay()
    {
        return $this->relay;
    }
    /**
     * Set relay value
     * @param \Cocorico\EdnBundle\Wsdl\RelayType $relay
     * @return \Cocorico\EdnBundle\Wsdl\GetRelayResponse
     */
    public function setRelay(\Cocorico\EdnBundle\Wsdl\RelayType $relay = null)
    {
        $this->relay = $relay;
        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 \Cocorico\EdnBundle\Wsdl\GetRelayResponse
     */
    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__;
    }
}
