class Profile implements ProfileInterface

The default implementation of ProfileInterface.

Methods

__construct(string $name, string $data)

No description

string
name()

Returns the name of the profile.

string
data()

Returns the profile data.

static Profile
fromPath(string $path)

Creates a profile from a path to a file.

Details

at line 35
__construct(string $name, string $data)

Parameters

string $name
string $data

at line 46
string name()

Returns the name of the profile.

Return Value

string

See also

ProfileInterface::name

at line 56
string data()

Returns the profile data.

Return Value

string

See also

ProfileInterface::data

at line 70
static Profile fromPath(string $path)

Creates a profile from a path to a file.

Parameters

string $path

Return Value

Profile

Exceptions

InvalidArgumentException In case the provided path is not valid