mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Cleanup of model attributes
This commit is contained in:
parent
722f032895
commit
775e46288e
|
@ -47,13 +47,6 @@ class Accessory extends SnipeModel
|
|||
'supplier' => ['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
|
||||
|
|
|
@ -34,11 +34,6 @@ class Asset extends Depreciable
|
|||
const USER = 'user';
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,13 +20,6 @@ class Component extends SnipeModel
|
|||
|
||||
protected $dates = ['deleted_at', 'purchase_date'];
|
||||
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
|
||||
|
|
|
@ -20,12 +20,6 @@ class Consumable extends SnipeModel
|
|||
'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
|
||||
|
|
|
@ -18,12 +18,6 @@ class License extends Depreciable
|
|||
{
|
||||
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 CompanyableTrait;
|
||||
|
|
|
@ -17,12 +17,6 @@ class LicenseSeat extends Model implements ICompanyableChild
|
|||
protected $guarded = 'id';
|
||||
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()
|
||||
{
|
||||
return ['asset', 'license'];
|
||||
|
|
Loading…
Reference in a new issue