<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RichiestaCartellino StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:RichiestaCartellino
 * @subpackage Structs
 */
class RichiestaCartellino extends RichiestaCartellinoBase
{
    /**
     * The Eventi
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ArrayOfRichiestaCartellino_Evento
     */
    public $Eventi;
    /**
     * Constructor method for RichiestaCartellino
     * @uses RichiestaCartellino::setEventi()
     * @param ArrayOfRichiestaCartellino_Evento $eventi
     */
    public function __construct(ArrayOfRichiestaCartellino_Evento $eventi = null)
    {
        $this
            ->setEventi($eventi);
    }
    /**
     * Get Eventi value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return ArrayOfRichiestaCartellino_Evento|null
     */
    public function getEventi()
    {
        return isset($this->Eventi) ? $this->Eventi : null;
    }
    /**
     * Set Eventi value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param ArrayOfRichiestaCartellino_Evento $eventi
     * @return RichiestaCartellino
     */
    public function setEventi(ArrayOfRichiestaCartellino_Evento $eventi = null)
    {
        if (is_null($eventi) || (is_array($eventi) && empty($eventi))) {
            unset($this->Eventi);
        } else {
            $this->Eventi = $eventi;
        }
        return $this;
    }
}
