32 lines
No EOL
937 B
PHP
32 lines
No EOL
937 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace VeruA\DomainObjects;
|
|
|
|
use VeruA\DomainObjects\DomainObject;
|
|
use VeruA\DomainObjects\Owner;
|
|
use VeruA\DomainObjects\ValueObjects\{IntKey, Varchar, Boolean, Integer};
|
|
|
|
class Canton extends DomainObject {
|
|
|
|
protected function fields(array ...$superFields): array
|
|
{
|
|
|
|
return parent::fields([
|
|
'id' => IntKey::class,
|
|
'taxwert' => Varchar::class, // decimal on db
|
|
'kanton' => Varchar::class,
|
|
'prioritaet' => Integer::class,
|
|
'del' => Boolean::class,
|
|
'tarifsystem' => Integer::class,
|
|
'zsr_nr' => Varchar::class,
|
|
'kuerzel_kanton' => Varchar::class,
|
|
'kvg_uvg' => Integer::class,
|
|
'tariffs_pa' => Boolean::class,
|
|
'color' => Varchar::class,
|
|
'user' => Integer::class,
|
|
'date' => Varchar::class,
|
|
|
|
'owner' => Owner::class // @see blameable object in Symfony
|
|
], ...$superFields);
|
|
}
|
|
} |