Lifestream
Class

Lyrixx\Lifestream\Service\AbstractService

abstract class AbstractService implements ServiceInterface

AbstractService implements common methods of ServiceInterface

Methods

__construct(string $feedUrl, string $profileUrl = null, Client $client = null)

Constructor

StatusInterface[] getStatuses()

Returns a collection of StatusInterface

setStatusClassname(string $statusClassname)

Sets the status classname.

string getName()

Returns the service name

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 27
public __construct(string $feedUrl, string $profileUrl = null, Client $client = null)

Constructor

Parameters

string $feedUrl A Feed url
string $profileUrl A profileUrl
Client $client A client

at line 52
public StatusInterface[] getStatuses()

Returns a collection of StatusInterface

Return Value

StatusInterface[] A colection StatusInterface

at line 74
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 82
public string getName()

Returns the service name

Return Value

string The service name

at line 92
public setClient(Client $client)

Set a client

Parameters

Client $client A client

at line 102
public string getFeedUrl()

Return the full url to the feed.

Return Value

string The feed Url

at line 110
public string getProfileUrl()

Return the full url to the profile

Return Value

string The profile url

at line 118
public setResponse(Response $response)

Set the response

Usefull for multicurl

Parameters

Response $response

at line 126
public Request prepareRequest()

Prepare the request

Return Value

Request