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 Z1925 extends Element implements ElementInterface
{
const REG = '1925';
const LEVEL = 5;
const PARENT = '1920';
protected $parameters = [
'COD_INF_ADIC' => [
'type' => 'string',
'regex' => '^.{8}$',
'required' => true,
'info' => 'Código da informação adicional conforme tabela a ser '
.'definida pelas SEFAZ, conforme tabela definida no item 5.2.',
'format' => ''
],
'VL_INF_ADIC' => [
'type' => 'numeric',
'regex' => '^\d+(\.\d*)?|\.\d+$',
'info' => 'Valor referente à informação adicional',
'format' => '15v2'
'DESCR_COMPL_AJ' => [
'regex' => '^.*$',
'required' => false,
'info' => 'Descrição complementar do ajuste',
]
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}