Documentation

OfferStatistic
in package
implements JsonSerializable uses CreateTimeLifecycleCallbacks

Class UserAppliedOffer

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\UserAppliedOfferRepository")

ORM\Table

(name="offer_statistic")

ORM\HasLifecycleCallbacks

()

Table of Contents

Interfaces

JsonSerializable

Constants

TYPE_PURCHASE  = 1
TYPE_VIEW  = 2

Properties

$client  : Client|null
$createTime  : DateTime|null
$id  : int|null
$ipAddress  : string
$offer  : Offer
$type  : int

Methods

__construct()  : mixed
createTimePrePersist()  : mixed
getClient()  : Client|null
getCreateTime()  : DateTime|null
getId()  : int|null
getIpAddress()  : string
getOffer()  : Offer
getType()  : int
jsonSerialize()  : mixed
setClient()  : void
setCreateTime()  : void
setId()  : void
setIpAddress()  : void
setOffer()  : void
setType()  : void

Constants

Properties

$client

private Client|null $client
Tags
ORM\ManyToOne

(targetEntity="Client")

ORM\JoinColumn

(name="client_id", referencedColumnName="id", nullable=true)

$createTime

private DateTime|null $createTime
Tags
ORM\Column

(name="create_time", type="datetime", nullable=false)

$id

private int|null $id
Tags
ORM\Column

(type="integer")

ORM\Id

()

ORM\GeneratedValue

()

$ipAddress

private string $ipAddress
Tags
ORM\Column

(name="ip", type="string", nullable=false)

$offer

private Offer $offer
Tags
ORM\ManyToOne

(targetEntity="Offer")

ORM\JoinColumn

(name="offer_id", referencedColumnName="id", nullable=false)

$type

private int $type
Tags
ORM\Column

(name="type", type="integer", nullable=false)

Methods

__construct()

public __construct(Offer $offer, Client|null $client, string $ipAddress, int $type) : mixed
Parameters
$offer : Offer
$client : Client|null
$ipAddress : string
$type : int

getCreateTime()

public getCreateTime() : DateTime|null
Return values
DateTime|null

getIpAddress()

public getIpAddress() : string
Return values
string

setCreateTime()

public setCreateTime(DateTime|null $createTime) : void
Parameters
$createTime : DateTime|null

setId()

public setId(int|null $id) : void
Parameters
$id : int|null

setIpAddress()

public setIpAddress(string $ipAddress) : void
Parameters
$ipAddress : string

setType()

public setType(int $type) : void
Parameters
$type : int

        
On this page

Search results