PHP Interface FastFeed\FastFeedInterface

Mostra file Open project: fastfeed/fastfeed

Public Methods

Method Description
addFeed ( string $channel, string $feed ) Add feed to channel
fetch ( string $channel = 'default' ) : array
getFeed ( string $channel ) : string Retrieve a channel
getFeeds ( ) : array Retrieve all channels
popParser ( ) : FastFeed\Parser\ParserInterface
popProcessor ( ) : FastFeed\Processor\ProcessorInterface
pushParser ( FastFeed\Parser\ParserInterface $parser )
pushProcessor ( FastFeed\Processor\ProcessorInterface $processor )
setFeed ( string $channel, string $feed ) Set a channel
setHttpClient ( Guzzle\Http\ClientInterface $guzzle ) Set Guzzle
setLogger ( Psr\Log\LoggerInterface $logger )

Method Details

addFeed() public method

Add feed to channel
public addFeed ( string $channel, string $feed )
$channel string
$feed string

fetch() public method

public fetch ( string $channel = 'default' ) : array
$channel string
return array

getFeed() public method

Retrieve a channel
public getFeed ( string $channel ) : string
$channel string
return string

getFeeds() public method

Retrieve all channels
public getFeeds ( ) : array
return array

popParser() public method

public popParser ( ) : FastFeed\Parser\ParserInterface
return FastFeed\Parser\ParserInterface

popProcessor() public method

public popProcessor ( ) : FastFeed\Processor\ProcessorInterface
return FastFeed\Processor\ProcessorInterface

pushParser() public method

public pushParser ( FastFeed\Parser\ParserInterface $parser )
$parser FastFeed\Parser\ParserInterface

pushProcessor() public method

public pushProcessor ( FastFeed\Processor\ProcessorInterface $processor )
$processor FastFeed\Processor\ProcessorInterface

setFeed() public method

Set a channel
public setFeed ( string $channel, string $feed )
$channel string
$feed string

setHttpClient() public method

Set Guzzle
public setHttpClient ( Guzzle\Http\ClientInterface $guzzle )
$guzzle Guzzle\Http\ClientInterface

setLogger() public method

public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface