ReportMissingInfoProviderService
Table of Contents
Constants
-
CACHE_LIFETIME_SECONDS
= 60 * 60 * 12
-
REPORT_MISSING_BASE_KEY
= "entry reportMissings entryId:"
-
REQUEST_CONTENT_TYPE
= "application/hal+json"
-
REQUEST_TIMEOUT
= 16
Properties
-
$logger
: Logger
-
$redis
: Redis
-
$vatjarJavaCaller
: VatjarJavaCallerService
Methods
-
__construct()
: mixed
-
getReportMissingInfoByEntryId()
: ReportMissingInfoEntity
-
getReportMissingInfoByEntryIdList()
: array<string|int, ReportMissingInfoEntity>
-
getReportMissingMessagesList()
: mixed
-
cacheElement()
: void
-
cacheList()
: void
-
clearElement()
: void
-
clearList()
: void
-
getCachedList()
: array<string|int, array<string|int, string>>
-
getCacheKeyByEntryId()
: string
-
getReportMissingEntitiesFromArray()
: array<string|int, ReportMissingInfoEntity>
-
getRequestOpt()
: mixed
-
requestData()
: ResponseInterface
CACHE_LIFETIME_SECONDS
public
mixed
CACHE_LIFETIME_SECONDS
= 60 * 60 * 12
REPORT_MISSING_BASE_KEY
public
mixed
REPORT_MISSING_BASE_KEY
= "entry reportMissings entryId:"
REQUEST_CONTENT_TYPE
public
mixed
REQUEST_CONTENT_TYPE
= "application/hal+json"
REQUEST_TIMEOUT
public
mixed
REQUEST_TIMEOUT
= 16
$logger
private
Logger
$logger
$redis
private
Redis
$redis
$vatjarJavaCaller
private
VatjarJavaCallerService
$vatjarJavaCaller
__construct()
public
__construct(Redis $redis, Logger $logger, VatjarJavaCallerService $vatjarJavaCaller) : mixed
Parameters
-
$redis
: Redis
-
-
$logger
: Logger
-
-
$vatjarJavaCaller
: VatjarJavaCallerService
-
getReportMissingInfoByEntryId()
public
getReportMissingInfoByEntryId(int $entryId) : ReportMissingInfoEntity
Parameters
-
$entryId
: int
-
getReportMissingInfoByEntryIdList()
public
getReportMissingInfoByEntryIdList(array<string|int, mixed> $entryIdList) : array<string|int, ReportMissingInfoEntity>
Parameters
-
$entryIdList
: array<string|int, mixed>
-
getReportMissingMessagesList()
public
getReportMissingMessagesList() : mixed
cacheElement()
private
cacheElement(int $entryId, array<string|int, string> $element) : void
Parameters
-
$entryId
: int
-
-
$element
: array<string|int, string>
-
cacheList()
private
cacheList(array<string|int, array<string|int, string>> $list) : void
Parameters
-
$list
: array<string|int, array<string|int, string>>
-
clearElement()
private
clearElement(int $entryId) : void
Parameters
-
$entryId
: int
-
clearList()
private
clearList(array<string|int, int> $list) : void
Parameters
-
$list
: array<string|int, int>
-
getCachedList()
private
getCachedList(array<string|int, int> $entryIdList) : array<string|int, array<string|int, string>>
Parameters
-
$entryIdList
: array<string|int, int>
-
Return values
array<string|int, array<string|int, string>>
getCacheKeyByEntryId()
private
getCacheKeyByEntryId(int $entryId) : string
Parameters
-
$entryId
: int
-
getReportMissingEntitiesFromArray()
private
getReportMissingEntitiesFromArray(array<string|int, array<string|int, string>> $reportMissingInfos) : array<string|int, ReportMissingInfoEntity>
Parameters
-
$reportMissingInfos
: array<string|int, array<string|int, string>>
-
getRequestOpt()
private
getRequestOpt(string $uri, array<string|int, mixed>|null $entryIdList) : mixed
Parameters
-
$uri
: string
-
-
$entryIdList
: array<string|int, mixed>|null
-
requestData()
private
requestData(string $uri[, array<string|int, int> $entryIdList = [] ]) : ResponseInterface
Parameters
-
$uri
: string
-
-
$entryIdList
: array<string|int, int>
= []
-
-
throws
-
Exception
Return values
ResponseInterface