Changeset View
Changeset View
Standalone View
Standalone View
src/app/Payment.php
<?php | <?php | ||||
namespace App; | namespace App; | ||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
/** | /** | ||||
* A payment operation on a wallet. | * A payment operation on a wallet. | ||||
* | * | ||||
* @property int $amount Amount of money in cents | * @property int $amount Amount of money in cents | ||||
* @property string $description Payment description | * @property string $description Payment description | ||||
* @property string $id Mollie's Payment ID | * @property string $id Mollie's Payment ID | ||||
* @property int $wallet_id The ID of the wallet | * @property \App\Wallet $wallet The wallet | ||||
* @property string $wallet_id The ID of the wallet | |||||
*/ | */ | ||||
class Payment extends Model | class Payment extends Model | ||||
{ | { | ||||
public $incrementing = false; | public $incrementing = false; | ||||
protected $keyType = 'string'; | protected $keyType = 'string'; | ||||
protected $casts = [ | protected $casts = [ | ||||
'amount' => 'integer' | 'amount' => 'integer' | ||||
Show All 16 Lines |