/
DispatcherInterface.zep
64 lines (52 loc) · 1.39 KB
/
DispatcherInterface.zep
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Cli;
use Phalcon\Dispatcher\DispatcherInterface as DispatcherInterfaceBase;
/**
* Interface for Phalcon\Cli\Dispatcher
*/
interface DispatcherInterface extends DispatcherInterfaceBase
{
/**
* Returns the active task in the dispatcher
*/
public function getActiveTask() -> <TaskInterface>;
/**
* Returns the latest dispatched controller
*/
public function getLastTask() -> <TaskInterface>;
/**
* Get dispatched options
*/
public function getOptions() -> array;
/**
* Gets last dispatched task name
*/
public function getTaskName() -> string;
/**
* Gets default task suffix
*/
public function getTaskSuffix() -> string;
/**
* Sets the default task name
*/
public function setDefaultTask(string taskName) -> void;
/**
* Set the options to be dispatched
*/
public function setOptions(array options) -> void;
/**
* Sets the task name to be dispatched
*/
public function setTaskName(string taskName) -> void;
/**
* Sets the default task suffix
*/
public function setTaskSuffix(string taskSuffix) -> void;
}