<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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