Page MenuHomePhorge

Entitlement.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Entitlement.php

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* The eloquent definition of an Entitlement.
*
* Owned by a {@link \App\User}, billed to a {@link \App\Wallet}.
*/
class Entitlement extends Model
{
/**
* This table does not use auto-increment.
*
* @var boolean
*/
public $incrementing = false;
/**
* The key type is actually a string.
*
* @var string
*/
protected $keyType = 'string';
/**
* The fillable columns for this Entitlement
*
* @var array
*/
protected $fillable = [
'sku_id',
'owner_id',
'wallet_id',
'entitleable_id',
'entitleable_type',
'description'
];
/**
* Principally entitleable objects such as 'Domain' or 'Mailbox'.
*
* @return mixed
*/
public function entitleable()
{
return $this->morphTo();
}
/**
* The SKU concerned.
*
* @return Sku
*/
public function sku()
{
return $this->belongsTo('App\Sku');
}
/**
* The owner of this entitlement.
*
* @return User
*/
public function owner()
{
return $this->belongsTo('App\User', 'owner_id', 'id');
}
/**
* The wallet this entitlement is being billed to
*
* @return Wallet
*/
public function wallet()
{
return $this->belongsTo('App\Wallet');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Apr 6, 12:38 AM (6 d, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/d0/869cc008a81adec0bae31e72c5ba
Default Alt Text
Entitlement.php (1 KB)

Event Timeline