Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120823632
Payment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
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 CHF
* @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
Fri, Apr 24, 10:09 AM (6 d, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/c0/9393da64869527103750db6fea9d
Default Alt Text
Payment.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline