class Compare

Class Compare

Properties

protected $id
protected string $name Compare list name
protected User $user Associated user
protected ArrayCollection $products Associated products

Methods

__construct()

Compare constructor.

int
getId()

No description

setId(int $id)

No description

string
getName()

No description

setName(string $name)

No description

getUser()

No description

setUser(User $user)

No description

ArrayCollection
getProducts(bool $filter = false)

No description

setProducts(ArrayCollection $products)

No description

addProduct(Product $product)

No description

removeProduct(Product $product)

No description

string
serialize()

(PHP 5 >= 5.1.0)
String representation of object

void
unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Details

at line 78
__construct()

Compare constructor.

at line 86
int getId()

Return Value

int

at line 96
Compare setId(int $id)

Parameters

int $id

Return Value

Compare

at line 106
string getName()

Return Value

string

at line 116
Compare setName(string $name)

Parameters

string $name

Return Value

Compare

at line 126
User getUser()

Return Value

User

at line 136
Compare setUser(User $user)

Parameters

User $user

Return Value

Compare

at line 148
ArrayCollection getProducts(bool $filter = false)

Parameters

bool $filter

Return Value

ArrayCollection

at line 160
setProducts(ArrayCollection $products)

Parameters

ArrayCollection $products

at line 170
Compare addProduct(Product $product)

Parameters

Product $product

Return Value

Compare

at line 180
removeProduct(Product $product)

Parameters

Product $product

at line 193
string serialize()

(PHP 5 >= 5.1.0)
String representation of object

Return Value

string the string representation of the object or null

at line 215
void unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Parameters

string $serialized The string representation of the object.

Return Value

void