-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
TransactionCreated.php
48 lines (43 loc) · 1.16 KB
/
TransactionCreated.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
<?php
/**
* @link https://github.com/illuminatech
* @copyright Copyright (c) 2019 Illuminatech
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
*/
namespace Illuminatech\Balance\Events;
/**
* TransactionCreated is an event dispatched after new balance transaction has been created.
*
* @see \Illuminatech\Balance\Balance
*
* @author Paul Klimov <klimov.paul@gmail.com>
* @since 1.0
*/
class TransactionCreated
{
/**
* @var mixed newly created transaction ID.
*/
public $transactionId;
/**
* @var mixed balance account ID.
*/
public $accountId;
/**
* @var array extra data, which should be associated with the transaction.
*/
public $data = [];
/**
* Constructor.
*
* @param mixed newly created transaction ID.
* @param mixed $accountId balance account ID.
* @param array $data extra data, which should be associated with the transaction.
*/
public function __construct($transactionId, $accountId, array $data = [])
{
$this->transactionId = $transactionId;
$this->accountId = $accountId;
$this->data = $data;
}
}