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.phpindex 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 rulesdiff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 288cb04068..051596ad2e 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -34,11 +34,6 @@ class Asset extends Depreciableconst 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.phpindex 8ccc3c3070..e880234ba7 100644--- a/app/Models/Component.php+++ b/app/Models/Component.php@@ -20,13 +20,6 @@ class Component extends SnipeModelprotected $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 rulesdiff --git a/app/Models/Consumable.php b/app/Models/Consumable.phpindex 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 rulesdiff --git a/app/Models/License.php b/app/Models/License.phpindex 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.phpindex 500391041d..c2abc20ea9 100755--- a/app/Models/LicenseSeat.php+++ b/app/Models/LicenseSeat.php@@ -17,12 +17,6 @@ class LicenseSeat extends Model implements ICompanyableChildprotected $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'];