initial commit
This commit is contained in:
commit
0db3e92ee6
59 changed files with 3384 additions and 0 deletions
49
src/DomainObjects/Address.php
Normal file
49
src/DomainObjects/Address.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace VeruA\DomainObjects;
|
||||
|
||||
use VeruA\DomainObjects\ValueObjects\IntKey;
|
||||
use VeruA\DomainObjects\ValueObjects\Varchar;
|
||||
use VeruA\DomainObjects\ValueObjects\Email;
|
||||
use VeruA\DomainObjects\ValueObjects\Phone;
|
||||
use VeruA\DomainObjects\ValueObjects\URL;
|
||||
|
||||
/**
|
||||
* An Address
|
||||
*
|
||||
* @property ValueObjects\Integer $id The pk of the client
|
||||
* @property ValueObjects\Varchar $street (str)
|
||||
* @property ValueObjects\Varchar $zip (plz)
|
||||
* @property ValueObjects\Varchar $city (ort)
|
||||
* @property ValueObjects\Varchar $pobox (pfach)
|
||||
* @property ValueObjects\Email $email
|
||||
* @property ValueObjects\Phone $phone (tel)
|
||||
* @property ValueObjects\Phone $cellPhone (natel)
|
||||
* @property ValueObjects\Phone $officePhone (tel_geschaeft
|
||||
* @property ValueObjects\Phone $fax
|
||||
* @property ValueObjects\URL $website (webseite)
|
||||
*/
|
||||
class Address extends DomainObject
|
||||
{
|
||||
|
||||
protected function fields(array ...$superFields): array
|
||||
{
|
||||
return parent::fields([
|
||||
'id' => IntKey::class,
|
||||
'street' => Varchar::class,
|
||||
'zip' => Varchar::class,
|
||||
'city' => Varchar::class,
|
||||
'pobox' => Varchar::class,
|
||||
'email' => Email::class,
|
||||
'phone' => Phone::class,
|
||||
'cellPhone' => Phone::class,
|
||||
'officePhone' => Phone::class,
|
||||
'fax' => Phone::class,
|
||||
'website' => URL::class,
|
||||
], ...$superFields);
|
||||
}
|
||||
|
||||
}
|
||||
/* jEdit buffer local properties {{{
|
||||
* :folding=explicit:collapseFolds=1:
|
||||
}}}*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue