<?php

namespace AppBundle/Soap/Play\DTO;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for registerEventsRequest DTO
 * Meta informations extracted from the WSDL
 * - type: tns:registerEventsRequest
 * @subpackage Structs
 */
class RegisterEventsRequest extends AbstractStructBase
{
    /**
     * The events
     * @var \AppBundle/Soap/Play\DTO\EventsType
     */
    public $events;
    /**
     * Constructor method for registerEventsRequest
     * @uses RegisterEventsRequest::setEvents()
     * @param \AppBundle/Soap/Play\DTO\EventsType $events
     */
    public function __construct(\AppBundle/Soap/Play\DTO\EventsType $events = null)
    {
        $this
            ->setEvents($events);
    }
    /**
     * Get events value
     * @return \AppBundle/Soap/Play\DTO\EventsType|null
     */
    public function getEvents()
    {
        return $this->events;
    }
    /**
     * Set events value
     * @param \AppBundle/Soap/Play\DTO\EventsType $events
     * @return \AppBundle/Soap/Play\DTO\RegisterEventsRequest
     */
    public function setEvents(\AppBundle/Soap/Play\DTO\EventsType $events = null)
    {
        $this->events = $events;
        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 \AppBundle/Soap/Play\DTO\RegisterEventsRequest
     */
    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__;
    }
}
