Skip to content

Commit

Permalink
Wip...
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Pollastri committed Nov 10, 2023
1 parent 00d1b64 commit 7c8d458
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion src/FatturaElettronica.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function fileContent($header, $body): string
return $this->createXml($fattura);
}

public function create(
protected function create(
array $FatturaElettronicaHeader,
array $FatturaElettronicaBody,
array $DettaglioLinee,
Expand All @@ -44,4 +44,18 @@ public function create(
'fileName' => $this->fileName($FatturaElettronicaHeader)
];
}

public function compose(
array $FatturaElettronicaHeader,
array $FatturaElettronicaBody,
array $DettaglioLinee,
array $DatiRiepilogo
): array {
return $this->create(
$FatturaElettronicaHeader,
$FatturaElettronicaBody,
$DettaglioLinee,
$DatiRiepilogo
);
}
}
2 changes: 1 addition & 1 deletion test-temp.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

// TODO -> Fattura -> COMPOSE( passando dati e creando struttura per create !!!)

$datiXml = $fattura->create($header, $body, $dettaglioLinee, $datiRiepilogo);
$datiXml = $fattura->compose($header, $body, $dettaglioLinee, $datiRiepilogo);

var_dump($datiXml);

Expand Down

0 comments on commit 7c8d458

Please sign in to comment.