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 C410 extends Element implements ElementInterface
{
const REG = 'C410';
const LEVEL = 4;
const PARENT = 'C400';
protected $parameters = [
'VL_PIS' => [
'type' => 'numeric',
'regex' => '^\d+(\.\d*)?|\.\d+$',
'required' => false,
'info' => 'Valor total do PIS',
'format' => '15v2'
],
'VL_COFINS' => [
'info' => 'Valor total da COFINS',
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}