mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
35 lines
773 B
PHP
35 lines
773 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\ImageScanGateMode;
|
|
use App\Enums\ImageScanOnError;
|
|
use App\Models\ImageScanPolicy;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ImageScanPolicy>
|
|
*/
|
|
class ImageScanPolicyFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'scope_type' => null,
|
|
'scope_id' => null,
|
|
'gate_mode' => null,
|
|
'on_scan_error' => null,
|
|
'count_medium' => null,
|
|
];
|
|
}
|
|
|
|
public function concrete(): static
|
|
{
|
|
return $this->state([
|
|
'gate_mode' => ImageScanGateMode::Off,
|
|
'on_scan_error' => ImageScanOnError::Deploy,
|
|
'count_medium' => false,
|
|
]);
|
|
}
|
|
}
|