class Visitor

Visitor Base class for visited statistic

Properties

protected DateTime $createdAt Date when statistics data created
protected string|null $platform Platform from which client visited shop
protected string|null $name Visited route name
protected string|null $url Visited URL
protected string|null $browser Browser from which client visited shop
protected string|null $type Device type from which client visited shop
protected DateTime|null $orderCreatedAt Date when order created
protected DateTime|null $orderFinishedAt Date when order finished
protected string|null $typeOfAction Type of cart action (add, increase, decrease, remove)
protected float|null $productQty Handled product quantity

Methods

__construct()

No description

setType(string|null $type)

Set platform

string|null
getPlatform()

Get platform

setPlatform(string|null $platform)

Set platform

string|null
getName()

Get name

setName(string|null $name)

Set name

string|null
getUrl()

Get url

setUrl(string|null $url)

Set url

string|null
getBrowser()

Get browser

setBrowser(string|null $browser)

Set browser

getCreatedAt()

Get createdAt

DateTime|null
getOrderCreatedAt()

No description

setOrderCreatedAt(DateTime|null $orderCreatedAt)

No description

DateTime|null
getOrderFinishedAt()

No description

setOrderFinishedAt(DateTime|null $orderFinishedAt)

No description

string|null
getTypeOfAction()

No description

setTypeOfAction(string|null $typeOfAction)

No description

float|null
getProductQty()

No description

setProductQty(float|null $productQty)

No description

Details

at line 109
__construct()

at line 121
Visitor setType(string|null $type)

Set platform

Parameters

string|null $type

Return Value

Visitor

at line 133
string|null getPlatform()

Get platform

Return Value

string|null

at line 145
Visitor setPlatform(string|null $platform)

Set platform

Parameters

string|null $platform

Return Value

Visitor

at line 157
string|null getName()

Get name

Return Value

string|null

at line 169
Visitor setName(string|null $name)

Set name

Parameters

string|null $name

Return Value

Visitor

at line 181
string|null getUrl()

Get url

Return Value

string|null

at line 193
Visitor setUrl(string|null $url)

Set url

Parameters

string|null $url

Return Value

Visitor

at line 205
string|null getBrowser()

Get browser

Return Value

string|null

at line 217
Visitor setBrowser(string|null $browser)

Set browser

Parameters

string|null $browser

Return Value

Visitor

at line 229
DateTime getCreatedAt()

Get createdAt

Return Value

DateTime

at line 237
DateTime|null getOrderCreatedAt()

Return Value

DateTime|null

at line 247
Visitor setOrderCreatedAt(DateTime|null $orderCreatedAt)

Parameters

DateTime|null $orderCreatedAt

Return Value

Visitor

at line 257
DateTime|null getOrderFinishedAt()

Return Value

DateTime|null

at line 267
Visitor setOrderFinishedAt(DateTime|null $orderFinishedAt)

Parameters

DateTime|null $orderFinishedAt

Return Value

Visitor

at line 277
string|null getTypeOfAction()

Return Value

string|null

at line 287
Visitor setTypeOfAction(string|null $typeOfAction)

Parameters

string|null $typeOfAction

Return Value

Visitor

at line 297
float|null getProductQty()

Return Value

float|null

at line 307
Visitor setProductQty(float|null $productQty)

Parameters

float|null $productQty

Return Value

Visitor