File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace CXml \Model ;
6
+
7
+ use CXml \Model \ExtrinsicsTrait ;
8
+ use CXml \Model \IdReferencesTrait ;
9
+ use CXml \Model \PaymentInterface ;
10
+ use JMS \Serializer \Annotation as Serializer ;
11
+
12
+ readonly class PCard implements PaymentInterface
13
+ {
14
+
15
+ public function __construct (
16
+ #[Serializer \XmlAttribute]
17
+ public string $ number ,
18
+ #[Serializer \XmlAttribute]
19
+ public string $ expiration ,
20
+ #[Serializer \XmlAttribute]
21
+ public ?string $ name = null ,
22
+ #[Serializer \SerializedName('PostalAddress ' )]
23
+ public ?PostalAddress $ postalAddress = null ,
24
+ ) {}
25
+
26
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace CXml \Model ;
6
+
7
+ use CXml \Model \ExtrinsicsTrait ;
8
+ use CXml \Model \IdReferencesTrait ;
9
+ use CXml \Model \PaymentInterface ;
10
+ use JMS \Serializer \Annotation as Serializer ;
11
+
12
+ readonly class PaymentToken implements PaymentInterface
13
+ {
14
+
15
+ public function __construct (
16
+ #[Serializer \XmlAttribute]
17
+ public string $ number ,
18
+ #[Serializer \XmlAttribute]
19
+ public string $ expiration ,
20
+ #[Serializer \XmlAttribute]
21
+ public ?string $ name ,
22
+ #[Serializer \XmlAttribute]
23
+ public string $ token ,
24
+ ) {}
25
+
26
+ }
You can’t perform that action at this time.
0 commit comments