1 | <?php |
||
7 | class ActionManager implements ActionManagerInterface |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var MessageFactory |
||
12 | */ |
||
13 | protected $factory; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $actions = array( |
||
19 | "*" => array() |
||
20 | ); |
||
21 | |||
22 | public function __construct( |
||
32 | |||
33 | public function add($command, ActionInterface $action) |
||
37 | |||
38 | public function handleConnect(ConnectionInterface $connection) |
||
47 | |||
48 | /** |
||
49 | * @param ConnectionInterface $connection |
||
50 | * @param string $string |
||
51 | * @return void |
||
52 | */ |
||
53 | public function handleRaw(ConnectionInterface $connection, $string) |
||
66 | |||
67 | public function handleTick(ConnectionInterface $connection) |
||
73 | |||
74 | /** |
||
75 | * @param string $command |
||
76 | * @return ActionInterface[] |
||
77 | */ |
||
78 | protected function getActions($command) |
||
82 | |||
83 | } |
||
84 |