<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OutrasPessoasDenunciados TRIBUNALWS
 * @subpackage Structs
 */
class OutrasPessoasDenunciados extends AbstractStructBase
{
    /**
     * The IdProcesso
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $IdProcesso;
    /**
     * The OutrasPessoasDenunciados
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \ArrayType\ArrayOfPessoaNaoRegistoNacionalPN
     */
    public $OutrasPessoasDenunciados;
    /**
     * Constructor method for OutrasPessoasDenunciados
     * @uses OutrasPessoasDenunciados::setIdProcesso()
     * @uses OutrasPessoasDenunciados::setOutrasPessoasDenunciados()
     * @param string $idProcesso
     * @param \ArrayType\ArrayOfPessoaNaoRegistoNacionalPN $outrasPessoasDenunciados
     */
    public function __construct($idProcesso = null, \ArrayType\ArrayOfPessoaNaoRegistoNacionalPN $outrasPessoasDenunciados = null)
    {
        $this
            ->setIdProcesso($idProcesso)
            ->setOutrasPessoasDenunciados($outrasPessoasDenunciados);
    }
    /**
     * Get IdProcesso 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 string|null
     */
    public function getIdProcesso()
    {
        return isset($this->IdProcesso) ? $this->IdProcesso : null;
    }
    /**
     * Set IdProcesso 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 string $idProcesso
     * @return \TRIBUNALWS\OutrasPessoasDenunciados
     */
    public function setIdProcesso($idProcesso = null)
    {
        if (is_null($idProcesso) || (is_array($idProcesso) && empty($idProcesso))) {
            unset($this->IdProcesso);
        } else {
            $this->IdProcesso = $idProcesso;
        }
        return $this;
    }
    /**
     * Get OutrasPessoasDenunciados 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\ArrayOfPessoaNaoRegistoNacionalPN|null
     */
    public function getOutrasPessoasDenunciados()
    {
        return isset($this->OutrasPessoasDenunciados) ? $this->OutrasPessoasDenunciados : null;
    }
    /**
     * Set OutrasPessoasDenunciados 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\ArrayOfPessoaNaoRegistoNacionalPN $outrasPessoasDenunciados
     * @return \TRIBUNALWS\OutrasPessoasDenunciados
     */
    public function setOutrasPessoasDenunciados(\ArrayType\ArrayOfPessoaNaoRegistoNacionalPN $outrasPessoasDenunciados = null)
    {
        if (is_null($outrasPessoasDenunciados) || (is_array($outrasPessoasDenunciados) && empty($outrasPessoasDenunciados))) {
            unset($this->OutrasPessoasDenunciados);
        } else {
            $this->OutrasPessoasDenunciados = $outrasPessoasDenunciados;
        }
        return $this;
    }
}
