Lifestream
Class

Lyrixx\Lifestream\LifestreamFactory

class LifestreamFactory

LifestreamFactory.

Use to create lifestream for ServiceFeedInterface

Methods

__construct(Client $client = null)

Conctructor

static  createNewInstance(Client $client = null)

Lifestream createLifestream(string $service, array $arguments = array(), array $filters = array(), array $formatters = array())

Create a Lifestream with a nammed service

setService(string $serviceName, string $serviceClass)

Add or replace a service

string[] getSupportedServices()

Get supported services

Details

at line 30
public __construct(Client $client = null)

Conctructor

Parameters

Client $client The client

at line 35
static public createNewInstance(Client $client = null)

Parameters

Client $client

at line 50
public Lifestream createLifestream(string $service, array $arguments = array(), array $filters = array(), array $formatters = array())

Create a Lifestream with a nammed service

Parameters

string $service A service among LifestreamFactory::getSupportedServices
array $arguments Arguments to give to service constructor
array $filters A collection of FormatterInterface
array $formatters A collection of FormatterInterface

Return Value

Lifestream A lifestream

at line 75
public setService(string $serviceName, string $serviceClass)

Add or replace a service

Parameters

string $serviceName A service identifier
string $serviceClass A service class. Should implements ServiceFeedInterface

at line 85
public string[] getSupportedServices()

Get supported services

Return Value

string[] Supported services