]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Irc/extlib/phergie/Phergie/Event/Abstract.php
Merge branch '1.0.x' into schema-x
[quix0rs-gnu-social.git] / plugins / Irc / extlib / phergie / Phergie / Event / Abstract.php
1 <?php
2 /**
3  * Phergie 
4  *
5  * PHP version 5
6  *
7  * LICENSE
8  *
9  * This source file is subject to the new BSD license that is bundled
10  * with this package in the file LICENSE.
11  * It is also available through the world-wide-web at this URL:
12  * http://phergie.org/license
13  *
14  * @category  Phergie 
15  * @package   Phergie
16  * @author    Phergie Development Team <team@phergie.org>
17  * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
18  * @license   http://phergie.org/license New BSD License
19  * @link      http://pear.phergie.org/package/Phergie
20  */
21
22 /**
23  * Base class for events.
24  *
25  * @category Phergie 
26  * @package  Phergie
27  * @author   Phergie Development Team <team@phergie.org>
28  * @license  http://phergie.org/license New BSD License
29  * @link     http://pear.phergie.org/package/Phergie
30  */
31 abstract class Phergie_Event_Abstract
32 {
33     /**
34      * Event type, used for determining the callback to execute in response
35      *
36      * @var string
37      */
38     protected $type;
39
40     /**
41      * Returns the event type.
42      *
43      * @return string
44      */
45     public function getType()
46     {
47         return $this->type; 
48     }
49
50     /**
51      * Sets the event type.
52      *
53      * @param string $type Event type
54      *
55      * @return Phergie_Event_Abstract Implements a fluent interface
56      */
57     public function setType($type)
58     {
59         $this->type = (string) $type;
60         return $this;
61     }
62 }