for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NFePHP\EFD\Elements\ICMSIPI;
use NFePHP\EFD\Common\Element;
use NFePHP\EFD\Common\ElementInterface;
use \stdClass;
class Z1105 extends Element implements ElementInterface
{
const REG = '1105';
const LEVEL = 3;
const PARENT = '1100';
protected $parameters = [
'COD_MOD' => [
'type' => 'string',
'regex' => '^[0][1]|[5][5]$',
'required' => true,
'info' => 'Código do modelo da NF, conforme tabela 4.1.1',
'format' => ''
],
'SERIE' => [
'regex' => '^.{1,3}$',
'required' => false,
'info' => 'Série da Nota Fiscal',
'NUM_DOC' => [
'type' => 'integer',
'regex' => '^[1-9]\d{0,8}$',
'info' => 'Número de Nota Fiscal de Exportação emitida pelo Exportador',
'CHV_NFE' => [
'type' => 'numeric',
'regex' => '^([0-9]{44})?$',
'info' => 'Chave da Nota Fiscal Eletrônica',
'DT_DOC' => [
'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$',
'info' => 'Data da emissão da NF de exportação',
'COD_ITEM' => [
'regex' => '^.{1,60}$',
'info' => 'Código do item (campo 02 do Registro 0200)',
]
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}