DashboardService
Table of Contents
Properties
-
$auth
: mixed
-
$channelRepository
: ChannelRepository
-
$dashboardFilterService
: DashboardFilterService
-
$em
: mixed
-
$request
: Request
-
$response
: Response
-
$turnoverCorrectRepository
: TurnoverCorrectRepository
-
$turnoverIncorrectRepository
: TurnoverIncorrectRepository
Methods
-
__construct()
: mixed
-
getChannelsWithTurnover()
: array<string|int, mixed>
-
getThreshold()
: array<string|int, mixed>|null
-
getTurnover()
: mixed
-
getFirstDate()
: mixed
-
getLastDate()
: mixed
__construct()
public
__construct(Request $request, Response $response, AuthComponent $auth, DashboardFilterService $dashboardFilterService, TurnoverCorrectRepository $turnoverCorrectRepository, TurnoverIncorrectRepository $turnoverIncorrectRepository, ChannelRepository $channelRepository, EntityManager $em) : mixed
Parameters
-
$request
: Request
-
-
$response
: Response
-
-
$auth
: AuthComponent
-
-
$dashboardFilterService
: DashboardFilterService
-
-
$turnoverCorrectRepository
: TurnoverCorrectRepository
-
-
$turnoverIncorrectRepository
: TurnoverIncorrectRepository
-
-
$channelRepository
: ChannelRepository
-
-
$em
: EntityManager
-
getChannelsWithTurnover()
public
getChannelsWithTurnover(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getThreshold()
public
getThreshold(mixed $userId) : array<string|int, mixed>|null
Parameters
-
$userId
: mixed
-
Return values
array<string|int, mixed>|null
getTurnover()
public
getTurnover(mixed $userId) : mixed
Parameters
-
$userId
: mixed
-
getFirstDate()
private
getFirstDate(mixed $turnoverCorrect, mixed $turnoverIncorrect) : mixed
Parameters
-
$turnoverCorrect
: mixed
-
-
$turnoverIncorrect
: mixed
-
getLastDate()
private
getLastDate(mixed $turnoverCorrect, mixed $turnoverIncorrect) : mixed
Parameters
-
$turnoverCorrect
: mixed
-
-
$turnoverIncorrect
: mixed
-