Lifestream
Interface

Lyrixx\Lifestream\Service\ServiceInterface

interface ServiceInterface

ServiceInterface will be in charges to fetch remotes (over http) datas, and convert each status to a StatusInterface object.

Methods

StatusInterface[] getStatuses()

Returns a collection of StatusInterface

string getName()

Returns the service name

setStatusClassname(string $statusClassname)

Sets the status classname.

setClient(Client $client)

Set a client

string getFeedUrl()

Return the full url to the feed.

string getProfileUrl()

Return the full url to the profile

setResponse(Response $response)

Set the response

Request prepareRequest()

Prepare the request

Details

at line 21
public StatusInterface[] getStatuses()

Returns a collection of StatusInterface

Return Value

StatusInterface[] A colection StatusInterface

at line 28
public string getName()

Returns the service name

Return Value

string The service name

at line 38
public setStatusClassname(string $statusClassname)

Sets the status classname.

Must implement StatusInterface.

I will be used to create a new StatusInterface with fetched datas

Parameters

string $statusClassname The status classname

at line 45
public setClient(Client $client)

Set a client

Parameters

Client $client A client

at line 52
public string getFeedUrl()

Return the full url to the feed.

Return Value

string The feed Url

at line 59
public string getProfileUrl()

Return the full url to the profile

Return Value

string The profile url

at line 68
public setResponse(Response $response)

Set the response

Usefull for multicurl

Parameters

Response $response

at line 75
public Request prepareRequest()

Prepare the request

Return Value

Request