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;
use \stdClass;
class Z0035 extends Element implements ElementInterface
{
const REG = '0035';
const LEVEL = 0;
const PARENT = '2';
protected $parameters = [
'COD_SCP' => [
'type' => 'numeric',
'regex' => '^(\d{14})$',
'required' => false,
'info' => 'Identificação da SCP',
'format' => ''
],
'DESC_SCP' => [
'type' => 'string',
'regex' => '^(.*)$',
'info' => 'Descrição da SCP',
'INF_COMP' => [
'info' => 'Informação Complementar',
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}