class Site

This class allows the storage and retrieval of the attributes of a web site in which a simulator is ran.

Properties

private Simulator $simulator
private int $id
private string $name
private string $home

Methods

void
__construct(Simulator $simulator, int $id, string $name, string $home)

Constructor of class Site

getSimulator()

Returns the Simulator object that uses this web site.

int
getId()

Returns the id of this Site object

void
setId(int $id)

Sets the id of this Site object

string
getName()

Returns the name of this web site.

void
setName(string $name)

Sets the name of this web site.

string
getHome()

Returns the URL of the home page of this web site.

void
setHome(string $home)

Sets the URL of the home page of this web site.

Details

at line 80
void __construct(Simulator $simulator, int $id, string $name, string $home)

Constructor of class Site

Parameters

Simulator $simulator The Simulator object that uses this web site.
int $id The id of this Site object.
string $name The name of this web site.
string $home The URL of the home page of this web site.

Return Value

void

at line 94
Simulator getSimulator()

Returns the Simulator object that uses this web site.

Return Value

Simulator The Simulator object.

at line 105
int getId()

Returns the id of this Site object

Return Value

int The id of this Site object

at line 117
void setId(int $id)

Sets the id of this Site object

Parameters

int $id The id of this Site object

Return Value

void

at line 128
string getName()

Returns the name of this web site.

Return Value

string The name of this web site.

at line 140
void setName(string $name)

Sets the name of this web site.

Parameters

string $name The name of this web site.

Return Value

void

at line 151
string getHome()

Returns the URL of the home page of this web site.

Return Value

string The URL of the home page

at line 163
void setHome(string $home)

Sets the URL of the home page of this web site.

Parameters

string $home The URL of the home page

Return Value

void