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
コード例 #1
0
ファイル: AbstractTest.php プロジェクト: phergie/phergie
 /**
  * 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());
 }