forked from spiralout/Tracks
/
Welcomer.php
34 lines (32 loc) · 845 Bytes
/
Welcomer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Example 1
*
* PHP Version 5.3
*
* @category Tracks
* @package Examples
* @subpackage Example1
* @author Sean Crystal <sean.crystal@gmail.com>
* @copyright 2011 Sean Crystal
* @license http://www.opensource.org/licenses/BSD-3-Clause BSD 3-Clause
* @link https://github.com/spiralout/Tracks
*/
/**
* Example Event Handler
*
* @category Tracks
* @package Examples
* @subpackage Example1
* @author Sean Crystal <sean.crystal@gmail.com>
* @copyright 2011 Sean Crystal
* @license http://www.opensource.org/licenses/BSD-3-Clause BSD 3-Clause
* @link https://github.com/spiralout/Tracks
*/
class Welcomer implements \Tracks\EventHandler\IEventHandler
{
public function execute(\Tracks\Event\Base $event)
{
echo 'Welcome aboard, '.$event->name.'!'.PHP_EOL;
}
}