123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App\Services\History\Detector;
- use App\Services\History\Converter\ConverterContact;
- use App\Services\History\Converter\ModelEnumConverter;
- use App\Services\History\Converter\WhitelistConverter;
- class ProjectDetector extends DetectorAbstract
- {
- public static function fields(): array
- {
- return [
- 'name',
- 'code',
- 'const',
- 'status',
- 'begin',
- 'end',
- 'latitude',
- 'type',
- 'acl',
- 'whitelist',
- 'description',
- ];
- }
- public static function diffFields(): array
- {
- return [
- 'description',
- ];
- }
- public static function converters(): array
- {
- return [
- "whitelist" => new WhitelistConverter(),
- "status" => new ModelEnumConverter("project.status"),
- ];
- }
- }
|