-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhpInvocable.php
57 lines (52 loc) · 1.39 KB
/
PhpInvocable.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* The Payment Cards from a Class.
*
* @package TheWebSolver/Codegarage/Test
*/
use TheWebSolver\Codegarage\Test\Resource\NapasCard;
return new class() {
/** @return array<string,mixed[]> */
public function __invoke() {
return array(
'napas' => $this->napasCardSchema(),
'gpn' => $this->gpnCardSchema(),
'humo' => $this->humoCardSchema(),
);
}
/** @return array<string,mixed> */
private function napasCardSchema(): array {
return array(
'name' => 'Napas',
'alias' => 'napas',
'classname' => NapasCard::class,
'breakpoint' => array( 4, 8, 12 ),
'code' => array( 'CVC', 3 ),
'length' => array( 16, 19 ),
'idRange' => array( 9704 ),
);
}
/** @return array<string,mixed> */
private function gpnCardSchema(): array {
return array(
'name' => 'Gerbang Pembayaran Nasional',
'alias' => 'gpn',
'type' => 'Debit Card',
'breakpoint' => array( 4, 8, 12 ),
'code' => array( 'CVC', 3 ),
'length' => array( 16, 18, 19 ),
'idRange' => array( 1946, 50, 56, 58, array( 60, 63 ) ),
);
}
/** @return array<string,mixed> */
private function humoCardSchema(): array {
return array(
'name' => 'Humo',
'alias' => 'humo',
'breakpoint' => array( 4, 8, 12 ),
'code' => array( 'CVv', 3 ),
'length' => array( 16 ),
'idRange' => array( 9860 ),
);
}
};