Cleanup of model attributes
This commit is contained in:
parent
722f032895
commit
775e46288e
6 changed files with 0 additions and 37 deletions
|
@ -48,13 +48,6 @@ class Accessory extends SnipeModel
|
||||||
'location' => ['name']
|
'location' => ['name']
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = CheckoutAccessoryNotification::class;
|
|
||||||
public static $checkinClass = CheckinAccessoryNotification::class;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Accessory validation rules
|
* Accessory validation rules
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,11 +34,6 @@ class Asset extends Depreciable
|
||||||
const USER = 'user';
|
const USER = 'user';
|
||||||
|
|
||||||
const ACCEPTANCE_PENDING = 'pending';
|
const ACCEPTANCE_PENDING = 'pending';
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = CheckoutAssetNotification::class;
|
|
||||||
public static $checkinClass = CheckinAssetNotification::class;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,13 +21,6 @@ class Component extends SnipeModel
|
||||||
protected $dates = ['deleted_at', 'purchase_date'];
|
protected $dates = ['deleted_at', 'purchase_date'];
|
||||||
protected $table = 'components';
|
protected $table = 'components';
|
||||||
|
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = null;
|
|
||||||
public static $checkinClass = null;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category validation rules
|
* Category validation rules
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,12 +20,6 @@ class Consumable extends SnipeModel
|
||||||
'requestable' => 'boolean'
|
'requestable' => 'boolean'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = CheckoutConsumableNotification::class;
|
|
||||||
public static $checkinClass = null;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category validation rules
|
* Category validation rules
|
||||||
|
|
|
@ -18,12 +18,6 @@ class License extends Depreciable
|
||||||
{
|
{
|
||||||
protected $presenter = 'App\Presenters\LicensePresenter';
|
protected $presenter = 'App\Presenters\LicensePresenter';
|
||||||
|
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = CheckoutLicenseNotification::class;
|
|
||||||
public static $checkinClass = CheckinLicenseNotification::class;
|
|
||||||
|
|
||||||
|
|
||||||
use SoftDeletes;
|
use SoftDeletes;
|
||||||
use CompanyableTrait;
|
use CompanyableTrait;
|
||||||
|
|
|
@ -17,12 +17,6 @@ class LicenseSeat extends Model implements ICompanyableChild
|
||||||
protected $guarded = 'id';
|
protected $guarded = 'id';
|
||||||
protected $table = 'license_seats';
|
protected $table = 'license_seats';
|
||||||
|
|
||||||
/**
|
|
||||||
* Set static properties to determine which checkout/checkin handlers we should use
|
|
||||||
*/
|
|
||||||
public static $checkoutClass = CheckoutLicenseNotification::class;
|
|
||||||
public static $checkinClass = CheckinLicenseNotification::class;
|
|
||||||
|
|
||||||
public function getCompanyableParents()
|
public function getCompanyableParents()
|
||||||
{
|
{
|
||||||
return ['asset', 'license'];
|
return ['asset', 'license'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue