initial commit
This commit is contained in:
commit
0db3e92ee6
59 changed files with 3384 additions and 0 deletions
32
src/DomainObjects/Canton.php
Normal file
32
src/DomainObjects/Canton.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue