<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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