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 D509 extends Element implements ElementInterface
{
const REG = 'D509';
const LEVEL = 4;
const PARENT = 'D500';
protected $parameters = [
'NUM_PROC' => [
'type' => 'string',
'regex' => '^.{0,20}$',
'required' => false,
'info' => 'Identificação do processo ou ato concessório ',
'format' => ''
],
'IND_PROC' => [
'regex' => '^(1|3|9)$',
'info' => 'Indicador da origem do processo ' .
' 1 - Justiça Federal ' .
' 3 – Secretaria da Receita Federal do Brasil 9 – Outros. ',
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}