fix get signature in mapper

This commit is contained in:
Dennis Eichhorn 2020-03-12 19:35:48 +01:00
parent f0eade1781
commit c6591795c4

View File

@ -20,6 +20,7 @@ use phpOMS\Localization\Defaults\CountryMapper;
use phpOMS\Localization\Defaults\CurrencyMapper; use phpOMS\Localization\Defaults\CurrencyMapper;
use phpOMS\Localization\Defaults\LanguageMapper; use phpOMS\Localization\Defaults\LanguageMapper;
use phpOMS\Localization\Localization; use phpOMS\Localization\Localization;
use phpOMS\DataStorage\Database\Query\Builder;
/** /**
* Localization mapper. * Localization mapper.
@ -143,15 +144,17 @@ final class LocalizationMapper extends DataMapperAbstract
/** /**
* Get object. * Get object.
* *
* @param mixed $primaryKey Key * @param mixed $primaryKey Key
* @param int $relations Load relations * @param int $relations Load relations
* @param int $depth Relation depth * @param int $depth Relation depth
* @param string $ref Ref (for getBy and getFor)
* @param Builder $query Query
* *
* @return mixed * @return mixed
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function get($primaryKey, int $relations = RelationType::ALL, int $depth = 1) public static function get($primaryKey, int $relations = RelationType::ALL, int $depth = 1, string $ref = null, Builder $query = null)
{ {
return parent::get($primaryKey, $relations, 1); return parent::get($primaryKey, $relations, 1);
} }