From 775e46288e6df0db7e092dbc4697582f096e65e8 Mon Sep 17 00:00:00 2001 From: Till Deeke Date: Sat, 21 Jul 2018 14:07:06 +0200 Subject: [PATCH] Cleanup of model attributes --- app/Models/Accessory.php | 7 ------- app/Models/Asset.php | 5 ----- app/Models/Component.php | 7 ------- app/Models/Consumable.php | 6 ------ app/Models/License.php | 6 ------ app/Models/LicenseSeat.php | 6 ------ 6 files changed, 37 deletions(-) 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'];