File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 18
18
class NetworkTransactionReference implements \JsonSerializable
19
19
{
20
20
/**
21
- * @var string
21
+ * @var string|null
22
22
*/
23
23
private $ id ;
24
24
@@ -38,9 +38,9 @@ class NetworkTransactionReference implements \JsonSerializable
38
38
private $ acquirerReferenceNumber ;
39
39
40
40
/**
41
- * @param string $id
41
+ * @param string|null $id
42
42
*/
43
- public function __construct (string $ id )
43
+ public function __construct (? string $ id = null )
44
44
{
45
45
$ this ->id = $ id ;
46
46
}
@@ -52,7 +52,7 @@ public function __construct(string $id)
52
52
* is the "NRID" field in response. The pattern we expect for this field from Visa/Amex/CB/Discover is
53
53
* numeric, Mastercard/BNPP is alphanumeric and Paysecure is alphanumeric with special character -.
54
54
*/
55
- public function getId (): string
55
+ public function getId (): ? string
56
56
{
57
57
return $ this ->id ;
58
58
}
@@ -64,10 +64,9 @@ public function getId(): string
64
64
* is the "NRID" field in response. The pattern we expect for this field from Visa/Amex/CB/Discover is
65
65
* numeric, Mastercard/BNPP is alphanumeric and Paysecure is alphanumeric with special character -.
66
66
*
67
- * @required
68
67
* @maps id
69
68
*/
70
- public function setId (string $ id ): void
69
+ public function setId (? string $ id ): void
71
70
{
72
71
$ this ->id = $ id ;
73
72
}
You can’t perform that action at this time.
0 commit comments