mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -10,13 +10,14 @@
|
||||
* @property int $server_id
|
||||
* @property string $username
|
||||
* @property string $password
|
||||
* @property array $databases
|
||||
* @property array<string> $databases
|
||||
* @property string $host
|
||||
* @property string $status
|
||||
* @property Server $server
|
||||
*/
|
||||
class DatabaseUser extends AbstractModel
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\DatabaseUserFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
@ -38,11 +39,17 @@ class DatabaseUser extends AbstractModel
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return BelongsTo<Server, covariant $this>
|
||||
*/
|
||||
public function server(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Server::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
public static array $statusColors = [
|
||||
DatabaseUserStatus::READY => 'success',
|
||||
DatabaseUserStatus::CREATING => 'warning',
|
||||
|
Reference in New Issue
Block a user