src/Resource/Holder.php
public function setTaxDocument($number, $type = self::TAX_DOCUMENT)
    {
        $this->data->taxDocument = new stdClass();
        $this->data->taxDocument->type = $type;
        $this->data->taxDocument->number = $number;

        return $this;
    }
public function setTaxDocument($number, $type = self::TAX_DOCUMENT)
    {
        $this->data->taxDocument = new stdClass();
        $this->data->taxDocument->type = $type;
        $this->data->taxDocument->number = $number;

        return $this;
    }
public function setTaxDocument ( $ number , $ type = self :: TAX_DOCUMENT ) { $ this -> data -> taxDocument = new stdClass ( ) ; $ this -> data -> taxDocument -> type = $ type ; $ this -> data -> taxDocument -> number = $ number ; return $ this ; }
Set tax document from holder.

@param string $number Document number.
@param string $type   Document type.

@return $this
Set tax document from holder .