for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NFePHP\EFD\Elements\Contribuicoes;
use NFePHP\EFD\Common\Element;
use NFePHP\EFD\Common\ElementInterface;
class D010 extends Element implements ElementInterface
{
const REG = 'D010';
const LEVEL = 2;
const PARENT = 'D001';
protected $parameters = [
'CNPJ' => [
'type' => 'string',
'regex' => '^[0-9]{14}$',
'required' => false,
'info' => 'Número de inscrição do estabelecimento no CNPJ. ',
'format' => ''
],
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}