Phergie_Event_Abstract::setType PHP Method

setType() public method

Sets the event type.
public setType ( string $type ) : Phergie_Event_Abstract
$type string Event type
return Phergie_Event_Abstract Implements a fluent interface
    public function setType($type)
    {
        $this->type = (string) $type;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Tests that the event type can be changed.
  *
  * @return void
  */
 public function testSetType()
 {
     $type = 'foo';
     $this->event->setType($type);
     $this->assertEquals($type, $this->event->getType());
 }
Phergie_Event_Abstract