Skip to content

A free open source IT asset/license management system

Cleanup of model attributes

Till Deeke775e46288e6d
diff --git a/app/Models/Accessory.php b/app/Models/Accessory.php
index 8fa27515e9..cdba5f3206 100755
--- a/app/Models/Accessory.php
+++ b/app/Models/Accessory.php
@@ -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
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index 288cb04068..051596ad2e 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -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;
/**
diff --git a/app/Models/Component.php b/app/Models/Component.php
index 8ccc3c3070..e880234ba7 100644
--- a/app/Models/Component.php
+++ b/app/Models/Component.php
@@ -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
diff --git a/app/Models/Consumable.php b/app/Models/Consumable.php
index b1d3fe222c..1b3a0da156 100644
--- a/app/Models/Consumable.php
+++ b/app/Models/Consumable.php
@@ -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
diff --git a/app/Models/License.php b/app/Models/License.php
index a3ac4c5985..c953bf9dd5 100755
--- a/app/Models/License.php
+++ b/app/Models/License.php
@@ -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;
diff --git a/app/Models/LicenseSeat.php b/app/Models/LicenseSeat.php
index 500391041d..c2abc20ea9 100755
--- a/app/Models/LicenseSeat.php
+++ b/app/Models/LicenseSeat.php
@@ -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'];