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 D360 extends Element implements ElementInterface
{
const REG = 'D360';
const LEVEL = 4;
const PARENT = '';
protected $parameters = [
'VL_PIS' => [
'type' => 'numeric',
'regex' => '^\d+(\.\d*)?|\.\d+$',
'required' => true,
'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);
}