<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CheckSessionForExistence Parameters
 * @subpackage Structs
 */
class CheckSessionForExistence extends AbstractStructBase
{
    /**
     * The checkSessionForExistenceRequest
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var CheckSessionForExistenceRequest
     */
    public $checkSessionForExistenceRequest;
    /**
     * Constructor method for CheckSessionForExistence
     * @uses CheckSessionForExistence::setCheckSessionForExistenceRequest()
     * @param CheckSessionForExistenceRequest $checkSessionForExistenceRequest
     */
    public function __construct(CheckSessionForExistenceRequest $checkSessionForExistenceRequest = null)
    {
        $this
            ->setCheckSessionForExistenceRequest($checkSessionForExistenceRequest);
    }
    /**
     * Get checkSessionForExistenceRequest 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 CheckSessionForExistenceRequest|null
     */
    public function getCheckSessionForExistenceRequest()
    {
        return isset($this->checkSessionForExistenceRequest) ? $this->checkSessionForExistenceRequest : null;
    }
    /**
     * Set checkSessionForExistenceRequest 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 CheckSessionForExistenceRequest $checkSessionForExistenceRequest
     * @return CheckSessionForExistence
     */
    public function setCheckSessionForExistenceRequest(CheckSessionForExistenceRequest $checkSessionForExistenceRequest = null)
    {
        if (is_null($checkSessionForExistenceRequest) || (is_array($checkSessionForExistenceRequest) && empty($checkSessionForExistenceRequest))) {
            unset($this->checkSessionForExistenceRequest);
        } else {
            $this->checkSessionForExistenceRequest = $checkSessionForExistenceRequest;
        }
        return $this;
    }
}
