Phergie_Event_Command::getPlugin PHP Method

getPlugin() public method

Returns a reference to the plugin instance that created the event.
public getPlugin ( ) : Phergie_Plugin_Abstract | null
return Phergie_Plugin_Abstract | null Plugin instance or NULL if none has been set
    public function getPlugin()
    {
        return $this->plugin;
    }

Usage Example

Beispiel #1
0
 /**
  * Tests that a plugin can be associated with an event.
  *
  * @return void
  */
 public function testSetPlugin()
 {
     $plugin = $this->getMock('Phergie_Plugin_Abstract');
     $this->event->setPlugin($plugin);
     $this->assertSame($plugin, $this->event->getPlugin());
 }
All Usage Examples Of Phergie_Event_Command::getPlugin
Phergie_Event_Command