1 | <?php |
||
11 | class CustomerCreditTransfer extends AbstractMessage |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $id; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $initiatingParty; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $payments; |
||
27 | |||
28 | /** |
||
29 | * @var \DateTime |
||
30 | */ |
||
31 | protected $creationTime; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | * |
||
36 | * @param string $id Identifier of the message (should usually be unique over a period of at least 90 days) |
||
37 | * @param string $initiatingParty Name of the initiating party |
||
38 | */ |
||
39 | 2 | public function __construct($id, $initiatingParty) |
|
46 | |||
47 | /** |
||
48 | * Manually sets the creation time |
||
49 | * |
||
50 | * @param \DateTime $creationTime The desired creation time |
||
51 | * |
||
52 | * @return CustomerCreditTransfer This message |
||
53 | */ |
||
54 | public function setCreationTime(\DateTime $creationTime) |
||
60 | |||
61 | /** |
||
62 | * Adds a payment instruction |
||
63 | * |
||
64 | * @param PaymentInformation $payment The payment to be added |
||
65 | * |
||
66 | * @return CustomerCreditTransfer This message |
||
67 | */ |
||
68 | 2 | public function addPayment(PaymentInformation $payment) |
|
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 2 | protected function getSchemaName() |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 2 | protected function buildDom(\DOMDocument $doc) |
|
111 | } |
||
112 |