mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-27 14:38:41 +00:00
improve array docblock
This commit is contained in:
parent
a99910ce22
commit
4906e13da6
|
|
@ -29,7 +29,7 @@ final class ContactElementMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $columns = [
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $ownsOne = [
|
||||
|
|
@ -62,20 +62,20 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
'location' => [
|
||||
'mapper' => AddressMapper::class,
|
||||
'table' => 'profile_address',
|
||||
'mapper' => AddressMapper::class,
|
||||
'table' => 'profile_address',
|
||||
'external' => 'profile_address_address',
|
||||
'self' => 'profile_address_profile',
|
||||
'self' => 'profile_address_profile',
|
||||
],
|
||||
'contactElements' => [
|
||||
'mapper' => ContactElementMapper::class,
|
||||
'table' => 'profile_contactelement',
|
||||
'self' => null,
|
||||
'mapper' => ContactElementMapper::class,
|
||||
'table' => 'profile_contactelement',
|
||||
'self' => null,
|
||||
'external' => 'profile_contactelement_contact',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user