UserVatDetectService
extends Injectable
in package
Class UserVatDetectService
Table of Contents
Properties
- $countryService : CountryService
- $userVatDetectRepository : UserVatDetectRepository
- $userVatService : UserVatService
Methods
- __construct() : mixed
- UserVatDetectService constructor.
- addDeletedUserVat() : bool
- Add deleted detect from UserVat
- delete() : bool
- getAllByClientIdAndEventList() : mixed
- getAllByUserIdListAndEventListAndCountryId() : mixed
- getDeletedUserVatDetectByUserIdAndCountryId() : UserVatDetect|null
- getFirstUserVatDetectByUserIdAndCountryIdOrderByCreateTime() : UserVatDetect|null
- getThresholdByClientId() : array<string|int, UserVatDetect>
- getUserVatDetectByCountryId() : array<string|int, UserVatDetect>|null
- getUserVatDetectByUserId() : array<string|int, UserVatDetect>|null
- getUserVatDetectByUserIdAndCountryId() : array<string|int, UserVatDetect>
- getUserVatDetectByUserIdAndCountryIdList() : array<string|int, UserVatDetect>
- getUserVatDetectByUserIdAndCountryIdListAndEventNotIn() : array<string|int, UserVatDetect>
- getUserVatDetectByUserIdAndNoDeletedEvent() : array<string|int, UserVatDetect>
- getUserVatDetectByUserIdListAndCountryIdList() : array<string|int, UserVatDetect>
- save() : bool
- update() : bool
Properties
$countryService
private
CountryService
$countryService
$userVatDetectRepository
private
UserVatDetectRepository
$userVatDetectRepository
$userVatService
private
UserVatService
$userVatService
Methods
__construct()
UserVatDetectService constructor.
public
__construct(UserVatDetectRepository $userVatDetectRepository) : mixed
Parameters
- $userVatDetectRepository : UserVatDetectRepository
addDeletedUserVat()
Add deleted detect from UserVat
public
addDeletedUserVat(UserVat $userVat, TransactionInterface|null $transaction) : bool
Parameters
- $userVat : UserVat
- $transaction : TransactionInterface|null
Tags
Return values
booldelete()
public
delete(UserVatDetect $userVatDetect) : bool
Parameters
- $userVatDetect : UserVatDetect
Return values
boolgetAllByClientIdAndEventList()
public
getAllByClientIdAndEventList(int $clientId, array<string|int, int> $eventList) : mixed
Parameters
- $clientId : int
- $eventList : array<string|int, int>
getAllByUserIdListAndEventListAndCountryId()
public
getAllByUserIdListAndEventListAndCountryId(array<string|int, int> $userIds, array<string|int, int> $eventList, int $countryId) : mixed
Parameters
- $userIds : array<string|int, int>
- $eventList : array<string|int, int>
- $countryId : int
getDeletedUserVatDetectByUserIdAndCountryId()
public
getDeletedUserVatDetectByUserIdAndCountryId(int $userId, int $countryId) : UserVatDetect|null
Parameters
- $userId : int
- $countryId : int
Return values
UserVatDetect|nullgetFirstUserVatDetectByUserIdAndCountryIdOrderByCreateTime()
public
getFirstUserVatDetectByUserIdAndCountryIdOrderByCreateTime(int $userId, int $countryId) : UserVatDetect|null
Parameters
- $userId : int
- $countryId : int
Return values
UserVatDetect|nullgetThresholdByClientId()
public
getThresholdByClientId(int $clientId) : array<string|int, UserVatDetect>
Parameters
- $clientId : int
Return values
array<string|int, UserVatDetect>getUserVatDetectByCountryId()
public
getUserVatDetectByCountryId(int $countryId) : array<string|int, UserVatDetect>|null
Parameters
- $countryId : int
Return values
array<string|int, UserVatDetect>|nullgetUserVatDetectByUserId()
public
getUserVatDetectByUserId(int $userId) : array<string|int, UserVatDetect>|null
Parameters
- $userId : int
Return values
array<string|int, UserVatDetect>|nullgetUserVatDetectByUserIdAndCountryId()
public
getUserVatDetectByUserIdAndCountryId(int $userId, int $countryId) : array<string|int, UserVatDetect>
Parameters
- $userId : int
- $countryId : int
Return values
array<string|int, UserVatDetect>getUserVatDetectByUserIdAndCountryIdList()
public
getUserVatDetectByUserIdAndCountryIdList(int $userId, array<string|int, int> $countryIdList) : array<string|int, UserVatDetect>
Parameters
- $userId : int
- $countryIdList : array<string|int, int>
Return values
array<string|int, UserVatDetect>getUserVatDetectByUserIdAndCountryIdListAndEventNotIn()
public
getUserVatDetectByUserIdAndCountryIdListAndEventNotIn(int $userId, array<string|int, int> $countryIdList[, array<string|int, int> $eventList = [] ]) : array<string|int, UserVatDetect>
Parameters
- $userId : int
- $countryIdList : array<string|int, int>
- $eventList : array<string|int, int> = []
Return values
array<string|int, UserVatDetect>getUserVatDetectByUserIdAndNoDeletedEvent()
public
getUserVatDetectByUserIdAndNoDeletedEvent(int $userId[, mixed $countryId = null ]) : array<string|int, UserVatDetect>
Parameters
- $userId : int
- $countryId : mixed = null
Return values
array<string|int, UserVatDetect>getUserVatDetectByUserIdListAndCountryIdList()
public
getUserVatDetectByUserIdListAndCountryIdList(array<string|int, int> $userIds, array<string|int, int> $countryIdList) : array<string|int, UserVatDetect>
Parameters
- $userIds : array<string|int, int>
- $countryIdList : array<string|int, int>
Return values
array<string|int, UserVatDetect>save()
public
save(UserVatDetect $userVatDetect) : bool
Parameters
- $userVatDetect : UserVatDetect
Return values
boolupdate()
public
update(UserVatDetect $userVatDetect) : bool
Parameters
- $userVatDetect : UserVatDetect