<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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