<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetAvailableSolicitorsResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetAvailableSolicitorsResponse
 * @subpackage Structs
 */
class GetAvailableSolicitorsResponse extends AbstractStructBase
{
    /**
     * The Solicitors
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfSalesRepresentativeData
     */
    public $Solicitors;
    /**
     * Constructor method for GetAvailableSolicitorsResponse
     * @uses GetAvailableSolicitorsResponse::setSolicitors()
     * @param \patest\ArrayType\ArrayOfSalesRepresentativeData $solicitors
     */
    public function __construct(\patest\ArrayType\ArrayOfSalesRepresentativeData $solicitors = null)
    {
        $this
            ->setSolicitors($solicitors);
    }
    /**
     * Get Solicitors 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 \patest\ArrayType\ArrayOfSalesRepresentativeData|null
     */
    public function getSolicitors()
    {
        return isset($this->Solicitors) ? $this->Solicitors : null;
    }
    /**
     * Set Solicitors 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 \patest\ArrayType\ArrayOfSalesRepresentativeData $solicitors
     * @return \patest\StructType\GetAvailableSolicitorsResponse
     */
    public function setSolicitors(\patest\ArrayType\ArrayOfSalesRepresentativeData $solicitors = null)
    {
        if (is_null($solicitors) || (is_array($solicitors) && empty($solicitors))) {
            unset($this->Solicitors);
        } else {
            $this->Solicitors = $solicitors;
        }
        return $this;
    }
}
