<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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