1 | <?php |
||
7 | abstract class Transform |
||
8 | { |
||
9 | /** |
||
10 | * Is this transformation enabled? |
||
11 | * |
||
12 | * @var [type] |
||
13 | */ |
||
14 | protected $enabled; |
||
15 | |||
16 | /** |
||
17 | * Set whether or not this transformation is enabled |
||
18 | * |
||
19 | * @param boolean $enabled |
||
20 | */ |
||
21 | public function setEnabled($enabled) |
||
25 | |||
26 | /** |
||
27 | * Is this transformation enabled? |
||
28 | * |
||
29 | * @return boolean |
||
30 | */ |
||
31 | public function isEnabled() |
||
35 | |||
36 | /** |
||
37 | * Transform the event |
||
38 | * |
||
39 | * @param Event $event |
||
40 | * @return Event The transformed event |
||
41 | */ |
||
42 | abstract public function transform(Event &$event); |
||
43 | } |
||
44 |