Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getDailyRegistrations example
$turnover
=
$this
->
getRepository
(
)
->
getDailyTurnover
(
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
)
;
$visitors
=
$this
->
getRepository
(
)
->
getDailyVisitors
(
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
)
;
$registrations
=
$this
->
getRepository
(
)
->
getDailyRegistrations
(
$this
->
getFromDate
(
)
,
$this
->
getToDate
(
)
)
;
$turnover
=
array_map
(
function
D
$turnoverItem
)
{
return
reset
(
$turnoverItem
)
;
}
,
$turnover
->
getData
(
)
)
;
$visitors
=
array_map
(
function
D
$visitorsItem
)
{
return
reset
(
$visitorsItem
)
;
}
,
$visitors
->
getData
(
)
)
;
$registrations
=
array_map
(
function
D
$registrationsItem
)
{