| Total Complexity | 1 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TransactionCreated implements ShouldQueue |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The type of this transaction. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | public $type = 'transaction.created'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * An ID used to prevent processing duplicates. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * A user model for this transaction event. |
||
| 28 | * |
||
| 29 | * @var \Illuminate\Database\Eloquent\Model|\Amelia\Monzo\Contracts\HasMonzoCredentials |
||
| 30 | */ |
||
| 31 | public $user; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The transaction sent in this event. |
||
| 35 | * |
||
| 36 | * @var \Amelia\Monzo\Models\Transaction |
||
| 37 | */ |
||
| 38 | public $transaction; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * TransactionCreated constructor. |
||
| 42 | * |
||
| 43 | * @param \Amelia\Monzo\Models\Transaction $transaction |
||
| 44 | * @param \Amelia\Monzo\Contracts\HasMonzoCredentials|\Illuminate\Database\Eloquent\Model $user |
||
| 45 | */ |
||
| 46 | public function __construct(Transaction $transaction, HasMonzoCredentials $user) |
||
| 53 |