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,15 +10,16 @@
|
||||
* @property int $site_id
|
||||
* @property int $source_control_id
|
||||
* @property string $secret
|
||||
* @property array $events
|
||||
* @property array $actions
|
||||
* @property array<string> $events
|
||||
* @property array<string, mixed> $actions
|
||||
* @property string $hook_id
|
||||
* @property array $hook_response
|
||||
* @property array<string, mixed> $hook_response
|
||||
* @property Site $site
|
||||
* @property SourceControl $sourceControl
|
||||
*/
|
||||
class GitHook extends AbstractModel
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\GitHookFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
@ -39,11 +40,17 @@ class GitHook extends AbstractModel
|
||||
'hook_response' => 'json',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return BelongsTo<Site, covariant $this>
|
||||
*/
|
||||
public function site(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Site::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<SourceControl, covariant $this>
|
||||
*/
|
||||
public function sourceControl(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(SourceControl::class);
|
||||
|
Reference in New Issue
Block a user