<?php

namespace TRIBUNALWS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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