<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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