<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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