class Profiles

This class allows the storage and retrieval of the attributes of a set of profiles.

Properties

private Simulator $simulator
private string $label
private array $profiles

Methods

void
__construct(Simulator $simulator)

Constructor of class Profiles

getSimulator()

Returns the Simulator object that uses this set of profiles

string
getLabel()

Returns the label of this set of profiles.

void
setLabel(string $label)

Sets the label of this set of profiles.

array
getProfiles()

Returns the list of profiles contained in this set of profiles.

void
setProfiles(array $profiles)

Sets the list of profiles contained in this set of profiles.

void
addProfile(Profile $profile)

Adds a Profile object to the list of profiles contained in this set of profiles.

void
removeProfile(int $index)

Removes a Profile object from the list of profiles contained in this set of profiles.

Details

at line 69
void __construct(Simulator $simulator)

Constructor of class Profiles

Parameters

Simulator $simulator The Simulator object that uses this set of profiles.

Return Value

void

at line 80
Simulator getSimulator()

Returns the Simulator object that uses this set of profiles

Return Value

Simulator The Simulator object

at line 91
string getLabel()

Returns the label of this set of profiles.

Return Value

string The label of this set of profiles.

at line 103
void setLabel(string $label)

Sets the label of this set of profiles.

Parameters

string $label The label of this set of profiles.

Return Value

void

at line 114
array getProfiles()

Returns the list of profiles contained in this set of profiles.

Return Value

array The list of profiles

at line 126
void setProfiles(array $profiles)

Sets the list of profiles contained in this set of profiles.

Parameters

array $profiles The list of profiles

Return Value

void

at line 138
void addProfile(Profile $profile)

Adds a Profile object to the list of profiles contained in this set of profiles.

Parameters

Profile $profile The Profile object

Return Value

void

at line 150
void removeProfile(int $index)

Removes a Profile object from the list of profiles contained in this set of profiles.

Parameters

int $index The index of the Profile object in the list

Return Value

void