PHP Class Uecode\Bundle\QPushBundle\Tests\MockClient\CustomMockClient

Author: Keith Kirk ([email protected])
Inheritance: extends Uecode\Bundle\QPushBundle\Provider\AbstractProvider
Show file Open project: uecode/qpush-bundle

Public Methods

Method Description
__construct ( string $name, array $options, mixed $client, Doctrine\Common\Cache\Cache $cache, Logger $logger ) Constructor for Provider classes
create ( )
delete ( $id )
destroy ( )
getProvider ( )
publish ( array $message, array $options = [] )
receive ( array $options = [] )

Method Details

__construct() public method

Constructor for Provider classes
public __construct ( string $name, array $options, mixed $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
$name string Name of the Queue the provider is for
$options array An array of configuration options for the Queue
$client mixed A Queue Client for the provider
$cache Doctrine\Common\Cache\Cache An instance of Doctrine\Common\Cache\Cache
$logger Monolog\Logger An instance of Mongolog\Logger

create() public method

public create ( )

delete() public method

public delete ( $id )

destroy() public method

public destroy ( )

getProvider() public method

public getProvider ( )

publish() public method

public publish ( array $message, array $options = [] )
$message array
$options array

receive() public method

public receive ( array $options = [] )
$options array