mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-15 03:58:41 +00:00
improve array docblock
This commit is contained in:
parent
ada3a27f44
commit
425751e915
|
|
@ -137,7 +137,7 @@ final class Installer extends InstallerAbstract
|
||||||
|
|
||||||
$query = new Builder($con);
|
$query = new Builder($con);
|
||||||
$query->prefix($con->getPrefix())
|
$query->prefix($con->getPrefix())
|
||||||
->insert('currency_id', 'currency_name', 'currency_char', 'currency_number', 'currency_symbol', 'currency_subunits', 'currency_decimals', 'currency_countries')
|
->insert('currency_id', 'currency_name', 'currency_code', 'currency_number', 'currency_symbol', 'currency_subunits', 'currency_decimal', 'currency_countries')
|
||||||
->into('currency');
|
->into('currency');
|
||||||
|
|
||||||
$querySqlite = new Builder($sqlite);
|
$querySqlite = new Builder($sqlite);
|
||||||
|
|
@ -147,11 +147,11 @@ final class Installer extends InstallerAbstract
|
||||||
$query->values(
|
$query->values(
|
||||||
$currency['currency_id'],
|
$currency['currency_id'],
|
||||||
$currency['currency_name'],
|
$currency['currency_name'],
|
||||||
$currency['currency_char'],
|
$currency['currency_code'],
|
||||||
$currency['currency_number'],
|
$currency['currency_number'],
|
||||||
$currency['currency_symbol'],
|
$currency['currency_symbol'],
|
||||||
$currency['currency_subunits'],
|
$currency['currency_subunits'],
|
||||||
$currency['currency_decimals'],
|
$currency['currency_decimal'],
|
||||||
$currency['currency_countries']
|
$currency['currency_countries']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ final class AccountMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has one relation.
|
* Has one relation.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
|
|
@ -66,15 +66,15 @@ final class AccountMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has many relation.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $hasMany = [
|
protected static array $hasMany = [
|
||||||
'groups' => [
|
'groups' => [
|
||||||
'mapper' => GroupMapper::class,
|
'mapper' => GroupMapper::class,
|
||||||
'table' => 'account_group',
|
'table' => 'account_group',
|
||||||
'external' => 'account_group_account',
|
'external' => 'account_group_account',
|
||||||
'self' => 'account_group_group',
|
'self' => 'account_group_group',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class AccountPermissionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ final class AddressMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
@ -50,13 +50,13 @@ final class AddressMapper extends DataMapperAbstract
|
||||||
* If a column is defined only that column value should get populated in the model and not the full model!
|
* If a column is defined only that column value should get populated in the model and not the full model!
|
||||||
* OwnsOne, HasOne, use single value instead of full model defined in the mapper.
|
* OwnsOne, HasOne, use single value instead of full model defined in the mapper.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
'country' => [
|
'country' => [
|
||||||
'mapper' => CountryMapper::class,
|
'mapper' => CountryMapper::class,
|
||||||
'column' => '',
|
//'column' => '',
|
||||||
'self' => 'address_country',
|
'self' => 'address_country',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class GroupMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
@ -68,7 +68,7 @@ final class GroupMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has many relation.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $hasMany = [
|
protected static array $hasMany = [
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class GroupPermissionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ final class LocalizationMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* Columns.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, bool|string|array>>
|
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
@ -48,7 +48,7 @@ final class LocalizationMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Has one relation.
|
* Has one relation.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class ModuleMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* 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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user