Rename Interfaces to Contracts to better match Laravel conventions
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Traits\HashIdTrait;
|
||||
use App\Support\Units\Distance;
|
||||
use App\Support\Units\Fuel;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\AircraftStatus;
|
||||
use App\Models\Traits\ExpensableTrait;
|
||||
use App\Models\Traits\FilesTrait;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\JournalType;
|
||||
use App\Models\Traits\FilesTrait;
|
||||
use App\Models\Traits\JournalTrait;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Traits\ExpensableTrait;
|
||||
use App\Models\Traits\FilesTrait;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* The Award model
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
class Bid extends Model
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AcarsType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class ActiveState
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AircraftState
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AircraftState
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AnalyticsDimensions
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AnalyticsMetrics
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class Days
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class ExpenseType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class FlightType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class FuelType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class JournalType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class NavaidType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class AcarsType
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class PirepSource
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class PirepState
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Tied to the ACARS statuses/states.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use App\Interfaces\Enum;
|
||||
use App\Contracts\Enum;
|
||||
|
||||
/**
|
||||
* Class UserState
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Traits\ReferenceTrait;
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class Fare
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Traits\HashIdTrait;
|
||||
use App\Models\Traits\ReferenceTrait;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\Days;
|
||||
use App\Models\Traits\HashIdTrait;
|
||||
use App\Support\Units\Distance;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class FlightField
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class FlightFieldValue
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Support\Money;
|
||||
use Carbon\Carbon;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Traits\ReferenceTrait;
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Support\Money;
|
||||
use Carbon\Carbon;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class Navdata
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class News
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\AcarsType;
|
||||
use App\Models\Enums\PirepFieldSource;
|
||||
use App\Models\Enums\PirepState;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepEvent
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepFare
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepField
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\PirepFieldSource;
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class Rank
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class Setting
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use App\Models\Enums\AircraftStatus;
|
||||
use App\Models\Traits\ExpensableTrait;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Traits;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
use Hashids\Hashids;
|
||||
|
||||
trait HashIdTrait
|
||||
|
||||
@@ -5,13 +5,13 @@ namespace App\Models\Traits;
|
||||
/**
|
||||
* Trait ReferenceTrait
|
||||
*
|
||||
* @property \App\Interfaces\Model $ref_model
|
||||
* @property mixed $ref_model_id
|
||||
* @property \App\Contracts\Model $ref_model
|
||||
* @property mixed $ref_model_id
|
||||
*/
|
||||
trait ReferenceTrait
|
||||
{
|
||||
/**
|
||||
* @param \App\Interfaces\Model $object
|
||||
* @param \App\Contracts\Model $object
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
@@ -27,7 +27,7 @@ trait ReferenceTrait
|
||||
/**
|
||||
* Return an instance of the object or null
|
||||
*
|
||||
* @return \App\Interfaces\Model|null
|
||||
* @return \App\Contracts\Model|null
|
||||
*/
|
||||
public function getReferencedObject()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class UserAward
|
||||
|
||||
Reference in New Issue
Block a user