Open Journal Systems  3.3.0
Guzzle\Tests\Mock\MockObserver Class Reference
Inheritance diagram for Guzzle\Tests\Mock\MockObserver:
Symfony\Component\EventDispatcher\EventSubscriberInterface

Public Member Functions

 count ()
 
 getData ($event, $key, $occurrence=0)
 
 getGrouped ()
 
 getLastEvent ()
 
 has ($eventName)
 
 update (Event $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Data Fields

 $events = array()
 

Detailed Description

Definition at line 8 of file MockObserver.php.

Member Function Documentation

◆ count()

Guzzle\Tests\Mock\MockObserver::count ( )

Definition at line 33 of file MockObserver.php.

◆ getData()

Guzzle\Tests\Mock\MockObserver::getData (   $event,
  $key,
  $occurrence = 0 
)

Definition at line 51 of file MockObserver.php.

References Guzzle\Tests\Mock\MockObserver\getGrouped().

◆ getGrouped()

Guzzle\Tests\Mock\MockObserver::getGrouped ( )

◆ getLastEvent()

Guzzle\Tests\Mock\MockObserver::getLastEvent ( )

Definition at line 28 of file MockObserver.php.

◆ getSubscribedEvents()

static Guzzle\Tests\Mock\MockObserver::getSubscribedEvents ( )
static

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority
  • An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance:

  • array('eventName' => 'methodName')
  • array('eventName' => array('methodName', $priority))
  • array('eventName' => array(array('methodName1', $priority), array('methodName2')))
Returns
array The event names to listen to

Implements Symfony\Component\EventDispatcher\EventSubscriberInterface.

Definition at line 12 of file MockObserver.php.

◆ has()

Guzzle\Tests\Mock\MockObserver::has (   $eventName)

Definition at line 17 of file MockObserver.php.

◆ update()

Guzzle\Tests\Mock\MockObserver::update ( Event  $event)

Definition at line 61 of file MockObserver.php.

Field Documentation

◆ $events

Guzzle\Tests\Mock\MockObserver::$events = array()

Definition at line 10 of file MockObserver.php.

Referenced by Guzzle\Tests\Mock\MockObserver\getGrouped().


The documentation for this class was generated from the following file: