Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120823510
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 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'
;
/** @var array<string, string> The attributes that should be cast */
protected
$casts
=
[
'amount'
=>
'integer'
];
/** @var array<int,string> The attributes that are mass assignable */
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
(
Wallet
::
class
,
'wallet_id'
,
'id'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:07 AM (4 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8a/37/4c2af59d2b365d8d001257e2feff
Default Alt Text
Payment.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline