<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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