-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from A5sys/init-reader
Add reading FEC file functionnality
- Loading branch information
Showing
29 changed files
with
740 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace A5sys\FecBundle\Normalizer; | ||
|
||
use A5sys\FecBundle\ValueObject\EcritureBICIS; | ||
|
||
/** | ||
* EN : Normalize input to an assoc array for BIC/IS | ||
* FR : Normalise l'entrée en un tableau associatif pour les déclarations BIC / IS | ||
*/ | ||
class BICISNormalizer extends AbstractStandardNormalizer | ||
{ | ||
/** | ||
* Normalize one array to an EcritureComptableInterface | ||
* @param array $data | ||
* @return EcritureBICIS | ||
*/ | ||
public function toValueObject(array $data) | ||
{ | ||
$ecritureComptable = new EcritureBICIS(); | ||
|
||
$this->setStandardProperties($ecritureComptable, $data); | ||
|
||
return $ecritureComptable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace A5sys\FecBundle\Normalizer; | ||
|
||
use A5sys\FecBundle\ValueObject\EcritureBNCBADroitCommercial; | ||
|
||
/** | ||
* EN : Normalize input to an assoc array for BNC/BA trade law | ||
* FR : Normalise l'entrée en un tableau associatif pour les déclarations BNC / BA Droit commercial | ||
*/ | ||
class BNCBADroitCommercialNormalizer extends AbstractStandardNormalizer | ||
{ | ||
/** | ||
* Normalize one array to an EcritureComptableInterface | ||
* @param array $data | ||
* @return EcritureBICIS | ||
*/ | ||
public function toValueObject(array $data) | ||
{ | ||
$ecritureComptable = new EcritureBNCBADroitCommercial(); | ||
|
||
$this->setStandardProperties($ecritureComptable, $data); | ||
|
||
return $ecritureComptable; | ||
} | ||
} |
Oops, something went wrong.