Documentation

UserVatService
in package

Table of Contents

Properties

$request  : Request
$userVatRepository  : UserVatRepository

Methods

__construct()  : mixed
UserVatService constructor.
delete()  : bool
getUserVatByUserId()  : Simple|null
getUserVatByUserIdAndCountryId()  : UserVat|null
getVatCountries()  : array<string|int, mixed>
getVatCountriesByUserId()  : Simple|null
save()  : bool
update()  : bool
getVatCountryIds()  : array<string|int, mixed>

Properties

Methods

getUserVatByUserId()

public getUserVatByUserId(int $userId) : Simple|null
Parameters
$userId : int
Return values
Simple|null

getUserVatByUserIdAndCountryId()

public getUserVatByUserIdAndCountryId(int $userId, int $countryId) : UserVat|null
Parameters
$userId : int
$countryId : int
Return values
UserVat|null

getVatCountries()

public getVatCountries(int $userId) : array<string|int, mixed>
Parameters
$userId : int
Return values
array<string|int, mixed>

getVatCountriesByUserId()

public getVatCountriesByUserId(int $userId) : Simple|null
Parameters
$userId : int
Return values
Simple|null

getVatCountryIds()

private getVatCountryIds(array<string|int, UserVat$userVats) : array<string|int, mixed>
Parameters
$userVats : array<string|int, UserVat>
Return values
array<string|int, mixed>

        
On this page

Search results