@@ 14-41 (lines=28) @@ | ||
11 | * |
|
12 | * @package Fhp\Segment |
|
13 | */ |
|
14 | class HKEND extends AbstractSegment |
|
15 | { |
|
16 | const NAME = 'HKEND'; |
|
17 | const VERSION = 1; |
|
18 | ||
19 | /** |
|
20 | * HKEND constructor. |
|
21 | * @param $segmentNumber |
|
22 | * @param $dialogId |
|
23 | */ |
|
24 | public function __construct($segmentNumber, $dialogId) |
|
25 | { |
|
26 | parent::__construct( |
|
27 | static::NAME, |
|
28 | $segmentNumber, |
|
29 | static::VERSION, |
|
30 | array($dialogId) |
|
31 | ); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @return string |
|
36 | */ |
|
37 | public function getName() |
|
38 | { |
|
39 | return static::NAME; |
|
40 | } |
|
41 | } |
|
42 |
@@ 16-43 (lines=28) @@ | ||
13 | * |
|
14 | * @package Fhp\Segment |
|
15 | */ |
|
16 | class HKSPA extends AbstractSegment |
|
17 | { |
|
18 | const NAME = 'HKSPA'; |
|
19 | const VERSION = 1; |
|
20 | ||
21 | /** |
|
22 | * HKSPA constructor. |
|
23 | * @param int $segmentNumber |
|
24 | * @param Ktv|null $ktv |
|
25 | */ |
|
26 | public function __construct($segmentNumber, Ktv $ktv = null) |
|
27 | { |
|
28 | parent::__construct( |
|
29 | static::NAME, |
|
30 | $segmentNumber, |
|
31 | static::VERSION, |
|
32 | array($ktv) |
|
33 | ); |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @return string |
|
38 | */ |
|
39 | public function getName() |
|
40 | { |
|
41 | return static::NAME; |
|
42 | } |
|
43 | } |
|
44 |
@@ 16-45 (lines=30) @@ | ||
13 | * |
|
14 | * @package Fhp\Segment |
|
15 | */ |
|
16 | class HNHBS extends AbstractSegment |
|
17 | { |
|
18 | const NAME = 'HNHBS'; |
|
19 | const VERSION = 1; |
|
20 | ||
21 | /** |
|
22 | * HNHBS constructor. |
|
23 | * @param int $segmentNumber |
|
24 | * @param int $messageNumber |
|
25 | */ |
|
26 | public function __construct( |
|
27 | $segmentNumber, |
|
28 | $messageNumber |
|
29 | ) { |
|
30 | parent::__construct( |
|
31 | static::NAME, |
|
32 | $segmentNumber, |
|
33 | static::VERSION, |
|
34 | array($messageNumber) |
|
35 | ); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * @return string |
|
40 | */ |
|
41 | public function getName() |
|
42 | { |
|
43 | return static::NAME; |
|
44 | } |
|
45 | } |
|
46 |
@@ 16-51 (lines=36) @@ | ||
13 | * |
|
14 | * @package Fhp\Segment |
|
15 | */ |
|
16 | class HNSHA extends AbstractSegment |
|
17 | { |
|
18 | const NAME = 'HNSHA'; |
|
19 | const VERSION = 2; |
|
20 | ||
21 | /** |
|
22 | * HNSHA constructor. |
|
23 | * @param int $segmentNumber |
|
24 | * @param string $securityControlReference |
|
25 | * @param string $pin |
|
26 | */ |
|
27 | public function __construct( |
|
28 | $segmentNumber, |
|
29 | $securityControlReference, |
|
30 | $pin |
|
31 | ) { |
|
32 | parent::__construct( |
|
33 | static::NAME, |
|
34 | $segmentNumber, |
|
35 | static::VERSION, |
|
36 | array( |
|
37 | $securityControlReference, |
|
38 | '', |
|
39 | $pin |
|
40 | ) |
|
41 | ); |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * @return string |
|
46 | */ |
|
47 | public function getName() |
|
48 | { |
|
49 | return static::NAME; |
|
50 | } |
|
51 | } |
|
52 |