UserTraderCountrySettingService
in package
Table of Contents
Properties
- $clientRepository : ClientRepository
- $countryRepository : ICountryRepository
- $request : Request
- $traderTypeRepository : ITraderTypeRepository
- $userTraderCountrySettingRepository : IUserTraderCountrySettingRepository
- $userTraderCountrySettingValidator : UserTraderCountrySettingValidator
Methods
- __construct() : mixed
- UserTreadCountrySettingService constructor.
- addUserTraderCountrySetting() : void
- getByUserIdAndCountryId() : UserTraderCountrySetting|null
- getUserTraderCountrySettingById() : UserTraderCountrySetting|null
- getUserTraderCountrySettings() : array<string|int, UserTraderCountrySetting>|null
- getUserTraderCountrySettingsByUserId() : array<string|int, UserTraderCountrySetting>|null
- updateUserTraderCountrySetting() : void
Properties
$clientRepository
private
ClientRepository
$clientRepository
$countryRepository
private
ICountryRepository
$countryRepository
$request
private
Request
$request
$traderTypeRepository
private
ITraderTypeRepository
$traderTypeRepository
$userTraderCountrySettingRepository
private
IUserTraderCountrySettingRepository
$userTraderCountrySettingRepository
$userTraderCountrySettingValidator
private
UserTraderCountrySettingValidator
$userTraderCountrySettingValidator
Methods
__construct()
UserTreadCountrySettingService constructor.
public
__construct(IUserTraderCountrySettingRepository $userTreadCountrySettingRepository, UserTraderCountrySettingValidator $userTreadCountrySettingValidator, ITraderTypeRepository $treaderTypeRepository, ICountryRepository $countryRepository, ClientRepository $clientRepository, Request $request) : mixed
Parameters
- $userTreadCountrySettingRepository : IUserTraderCountrySettingRepository
- $userTreadCountrySettingValidator : UserTraderCountrySettingValidator
- $treaderTypeRepository : ITraderTypeRepository
- $countryRepository : ICountryRepository
- $clientRepository : ClientRepository
- $request : Request
addUserTraderCountrySetting()
public
addUserTraderCountrySetting() : void
Tags
getByUserIdAndCountryId()
public
getByUserIdAndCountryId(int $userId, int $countryId) : UserTraderCountrySetting|null
Parameters
- $userId : int
- $countryId : int
Return values
UserTraderCountrySetting|nullgetUserTraderCountrySettingById()
public
getUserTraderCountrySettingById(int $id) : UserTraderCountrySetting|null
Parameters
- $id : int
Tags
Return values
UserTraderCountrySetting|nullgetUserTraderCountrySettings()
public
getUserTraderCountrySettings() : array<string|int, UserTraderCountrySetting>|null
Return values
array<string|int, UserTraderCountrySetting>|nullgetUserTraderCountrySettingsByUserId()
public
getUserTraderCountrySettingsByUserId(int $userId) : array<string|int, UserTraderCountrySetting>|null
Parameters
- $userId : int
Return values
array<string|int, UserTraderCountrySetting>|nullupdateUserTraderCountrySetting()
public
updateUserTraderCountrySetting() : void