add kulcsok, add tartós beszedés, add ticket type with intallments
This commit is contained in:
38
common/components/giro/GiroDETSTA.php
Normal file
38
common/components/giro/GiroDETSTA.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace common\components\giro;
|
||||
|
||||
use common\components\giro\GiroBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @property common\components\giro\GiroUzenetsorszam $uzenetSorszam
|
||||
* @property common\components\giro\GiroBankszamla $kezdemenyezoBankszamla
|
||||
*
|
||||
*/
|
||||
class GiroDETSTA extends GiroBase {
|
||||
|
||||
public $fej;
|
||||
public $lab;
|
||||
public $tetelek = [];
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function parse($content){
|
||||
$detsta = new GiroDETSTA();
|
||||
$array = preg_split("/\r\n|\n|\r/", $content);
|
||||
$detsta->fej = GiroDETSTAFej::parse($array[0]);
|
||||
$detsta->lab = GiroDETSTALab::parse($array[count($array) -1]);
|
||||
|
||||
for ( $i = 1 ; $i < count($array) -1; $i++ ){
|
||||
$row = $array[$i];
|
||||
$tetel = GiroDETSTATetel::parse($row);
|
||||
$detsta->tetelek[] = $tetel;
|
||||
}
|
||||
return $detsta;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user