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 E115 extends Element implements ElementInterface
{
const REG = 'E115';
const LEVEL = 4;
const PARENT = 'E110';
protected $parameters = [
'COD_INF_ADIC' => [
'type' => 'string',
'regex' => '^\d{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);
}