Add support for immutable carbon dates in models
This commit is contained in:
parent
6d1226a0c1
commit
f51d65229b
20 changed files with 79 additions and 26 deletions
|
@ -18,7 +18,7 @@ namespace Pterodactyl\Models;
|
|||
* @property \Pterodactyl\Models\Server|null $server
|
||||
* @property \Pterodactyl\Models\Node $node
|
||||
*/
|
||||
class Allocation extends Validable
|
||||
class Allocation extends Model
|
||||
{
|
||||
/**
|
||||
* The resource name for this model when it is transformed into an
|
||||
|
@ -75,7 +75,7 @@ class Allocation extends Validable
|
|||
/**
|
||||
* Accessor to automatically provide the IP alias if defined.
|
||||
*
|
||||
* @param null|string $value
|
||||
* @param string|null $value
|
||||
* @return string
|
||||
*/
|
||||
public function getAliasAttribute($value)
|
||||
|
@ -86,7 +86,7 @@ class Allocation extends Validable
|
|||
/**
|
||||
* Accessor to quickly determine if this allocation has an alias.
|
||||
*
|
||||
* @param null|string $value
|
||||
* @param string|null $value
|
||||
* @return bool
|
||||
*/
|
||||
public function getHasAliasAttribute($value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue