Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1842275
Payment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
Payment.php
View Options
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
/**
* A payment operation on a wallet.
*
* @property int $amount Amount of money in cents of system currency
* @property string $description Payment description
* @property string $id Mollie's Payment ID
* @property \App\Wallet $wallet The wallet
* @property string $wallet_id The ID of the wallet
* @property string $currency Currency of this payment
* @property int $currency_amount Amount of money in cents of $currency
*/
class
Payment
extends
Model
{
public
$incrementing
=
false
;
protected
$keyType
=
'string'
;
protected
$casts
=
[
'amount'
=>
'integer'
];
protected
$fillable
=
[
'id'
,
'wallet_id'
,
'amount'
,
'description'
,
'provider'
,
'status'
,
'type'
,
'currency'
,
'currency_amount'
,
];
/**
* Ensure the currency is appropriately cased.
*/
public
function
setCurrencyAttribute
(
$currency
)
{
$this
->
attributes
[
'currency'
]
=
strtoupper
(
$currency
);
}
/**
* The wallet to which this payment belongs.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public
function
wallet
()
{
return
$this
->
belongsTo
(
'
\A
pp
\W
allet'
,
'wallet_id'
,
'id'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Aug 25, 9:13 PM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
223965
Default Alt Text
Payment.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment