1 | <?php |
||
29 | abstract class Event extends \Caridea\Event\Event |
||
30 | { |
||
31 | private $entity; |
||
32 | |||
33 | /** |
||
34 | * Creates a new Dao Event. |
||
35 | * |
||
36 | * @param object $source |
||
37 | * @param object|array $entity |
||
38 | */ |
||
39 | 5 | public function __construct($source, $entity) |
|
44 | |||
45 | /** |
||
46 | * Gets the entity associated with the event. |
||
47 | * |
||
48 | * @return object|array The event entity |
||
49 | */ |
||
50 | 5 | public function getEntity() |
|
54 | } |
||
55 |