Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Models/ApiKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ApiKey extends Model
/**
* Get the user
*
* @psalm-return BelongsTo<User>
* @psalm-return BelongsTo<User, self>
*/
public function user(): BelongsTo
{
Expand Down
8 changes: 4 additions & 4 deletions app/Models/AtlasMeasurement.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class AtlasMeasurement extends Model
/**
* Get the atlas run
*
* @psalm-return BelongsTo<AtlasRun>
* @psalm-return BelongsTo<AtlasRun, self>
*/
public function atlasRun(): BelongsTo
{
Expand All @@ -114,7 +114,7 @@ public function atlasRun(): BelongsTo
/**
* Get the customer source
*
* @psalm-return BelongsTo<Customer>
* @psalm-return BelongsTo<Customer, self>
*/
public function custSource(): BelongsTo
{
Expand All @@ -124,7 +124,7 @@ public function custSource(): BelongsTo
/**
* Get the customer destination
*
* @psalm-return BelongsTo<Customer>
* @psalm-return BelongsTo<Customer, self>
*/
public function custDest(): BelongsTo
{
Expand All @@ -134,7 +134,7 @@ public function custDest(): BelongsTo
/**
* Get the atlas result for a measurement
*
* @psalm-return HasOne<AtlasResult>
* @psalm-return HasOne<AtlasResult, self>
*/
public function atlasResult(): HasOne
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AtlasProbe.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AtlasProbe extends Model
/**
* Get the customer that owns the Atlas probe
*
* @psalm-return BelongsTo<Customer>
* @psalm-return BelongsTo<Customer, self>
*/
public function customer(): BelongsTo
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AtlasResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class AtlasResult extends Model
/**
* Get the atlas measurement
*
* @psalm-return BelongsTo<AtlasMeasurement>
* @psalm-return BelongsTo<AtlasMeasurement, self>
*/
public function atlasMeasurement(): BelongsTo
{
Expand Down
4 changes: 2 additions & 2 deletions app/Models/AtlasRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class AtlasRun extends Model
/**
* Get the atlas measurements
*
* @psalm-return HasMany<AtlasMeasurement>
* @psalm-return HasMany<AtlasMeasurement, self>
*/
public function atlasMeasurements(): HasMany
{
Expand All @@ -113,7 +113,7 @@ public function atlasMeasurements(): HasMany
/**
* Get the vlan
*
* @psalm-return BelongsTo<Vlan>
* @psalm-return BelongsTo<Vlan, self>
*/
public function vlan(): BelongsTo
{
Expand Down
10 changes: 5 additions & 5 deletions app/Models/Cabinet.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Cabinet extends Model
/**
* Get the switchers for the cabinet
*
* @psalm-return HasMany<Switcher>
* @psalm-return HasMany<Switcher, self>
*/
public function switchers(): HasMany
{
Expand All @@ -125,7 +125,7 @@ public function switchers(): HasMany
/**
* Get the customerEquipments for the cabinet
*
* @psalm-return HasMany<CustomerEquipment>
* @psalm-return HasMany<CustomerEquipment, self>
*/
public function customerEquipment(): HasMany
{
Expand All @@ -135,7 +135,7 @@ public function customerEquipment(): HasMany
/**
* Get the console servers for the cabinet
*
* @psalm-return HasMany<ConsoleServer>
* @psalm-return HasMany<ConsoleServer, self>
*/
public function consoleServers(): HasMany
{
Expand All @@ -145,7 +145,7 @@ public function consoleServers(): HasMany
/**
* Get the patch panels for the cabinet
*
* @psalm-return HasMany<PatchPanel>
* @psalm-return HasMany<PatchPanel, self>
*/
public function patchPanels(): HasMany
{
Expand All @@ -155,7 +155,7 @@ public function patchPanels(): HasMany
/**
* Get the location for the cabinet
*
* @psalm-return BelongsTo<Location>
* @psalm-return BelongsTo<Location, self>
*/
public function location(): BelongsTo
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/CompanyBillingDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CompanyBillingDetail extends Model
/**
* Get the customer for the company billing detail
*
* @psalm-return HasOne<Customer>
* @psalm-return HasOne<Customer, self>
*/
public function customer(): HasOne
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/CompanyRegisteredDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CompanyRegisteredDetail extends Model
/**
* Get the customer for the company registered detail
*
* @psalm-return HasOne<Customer>
* @psalm-return HasOne<Customer, self>
*/
public function customer(): HasOne
{
Expand Down
6 changes: 3 additions & 3 deletions app/Models/ConsoleServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ConsoleServer extends Model
/**
* Get the vendor that own the console server
*
* @psalm-return BelongsTo<Vendor>
* @psalm-return BelongsTo<Vendor, self>
*/
public function vendor(): BelongsTo
{
Expand All @@ -106,7 +106,7 @@ public function vendor(): BelongsTo
/**
* Get the cabinet that own the console server
*
* @psalm-return BelongsTo<Cabinet>
* @psalm-return BelongsTo<Cabinet, self>
*/
public function cabinet(): BelongsTo
{
Expand All @@ -116,7 +116,7 @@ public function cabinet(): BelongsTo
/**
* Get the console server connections for the console server
*
* @psalm-return HasMany<ConsoleServerConnection>
* @psalm-return HasMany<ConsoleServerConnection, self>
*/
public function consoleServerConnections(): HasMany
{
Expand Down
6 changes: 3 additions & 3 deletions app/Models/ConsoleServerConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class ConsoleServerConnection extends Model
/**
* Get the customer that own the console server connection
*
* @psalm-return BelongsTo<CustomerTag>
* @psalm-return BelongsTo<CustomerTag, self>
*/
public function customer(): BelongsTo
{
Expand All @@ -153,7 +153,7 @@ public function customer(): BelongsTo
/**
* Get the customer that own the console server connection
*
* @psalm-return BelongsTo<Switcher>
* @psalm-return BelongsTo<Switcher, self>
*/
public function switcher(): BelongsTo
{
Expand All @@ -163,7 +163,7 @@ public function switcher(): BelongsTo
/**
* Get the console server that own the console server connection
*
* @psalm-return BelongsTo<ConsoleServer>
* @psalm-return BelongsTo<ConsoleServer, self>
*/
public function consoleServer(): BelongsTo
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function contactGroupsAll(): BelongsToMany
/**
* Get the customer that own the contact
*
* @psalm-return BelongsTo<Customer>
* @psalm-return BelongsTo<Customer, self>
*/
public function customer(): BelongsTo
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/ContactGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ContactGroup extends Model
];

/**
* @psalm-return BelongsToMany<Contact>
* @psalm-return BelongsToMany<Contact, self>
*/
public function contacts(): BelongsToMany
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/CoreBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class CoreBundle extends Model
/**
* Get the corelinks that belong to the corebundle
*
* @psalm-return HasMany<CoreLink>
* @psalm-return HasMany<CoreLink, self>
*/
public function corelinks(): HasMany
{
Expand Down
6 changes: 3 additions & 3 deletions app/Models/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CoreInterface extends Model
/**
* Get the physical interface associated with the core interface.
*
* @psalm-return BelongsTo<PhysicalInterface>
* @psalm-return BelongsTo<PhysicalInterface, self>
*/
public function physicalInterface(): BelongsTo
{
Expand All @@ -70,7 +70,7 @@ public function physicalInterface(): BelongsTo
/**
* Get the corelink associated with the core interface side A.
*
* @psalm-return HasOne<CoreLink>
* @psalm-return HasOne<CoreLink, self>
*/
public function coreLinkSideA(): HasOne
{
Expand All @@ -80,7 +80,7 @@ public function coreLinkSideA(): HasOne
/**
* Get the corelink associated with the core interface side B.
*
* @psalm-return HasOne<CoreLink>
* @psalm-return HasOne<CoreLink, self>
*/
public function coreLinkSideB(): HasOne
{
Expand Down
6 changes: 3 additions & 3 deletions app/Models/CoreLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CoreLink extends Model
/**
* Get the core interface side A associated with the corelink.
*
* @psalm-return BelongsTo<CoreInterface>
* @psalm-return BelongsTo<CoreInterface, self>
*/
public function coreInterfaceSideA(): BelongsTo
{
Expand All @@ -87,7 +87,7 @@ public function coreInterfaceSideA(): BelongsTo
/**
* Get the core interface side B associated with the corelink.
*
* @psalm-return BelongsTo<CoreInterface>
* @psalm-return BelongsTo<CoreInterface, self>
*/
public function coreInterfaceSideB(): BelongsTo
{
Expand All @@ -108,7 +108,7 @@ public function coreInterfaces(): array
/**
* Get the corebundle that own the corelink
*
* @psalm-return BelongsTo<CoreBundle>
* @psalm-return BelongsTo<CoreBundle, self>
*/
public function coreBundle(): BelongsTo
{
Expand Down
Loading