1 | <?php |
||
13 | class manager |
||
14 | { |
||
15 | /** @var array Array of tools from the service collection */ |
||
16 | protected $tools = array(); |
||
17 | |||
18 | /** |
||
19 | * Constructor |
||
20 | * |
||
21 | * @param array $tools Array of tools from the service collection |
||
22 | * @access public |
||
23 | */ |
||
24 | public function __construct($tools) |
||
28 | |||
29 | /** |
||
30 | * Get all available tools |
||
31 | * |
||
32 | * @return array Array of available tools |
||
33 | */ |
||
34 | public function get_tools() |
||
51 | |||
52 | /** |
||
53 | * Get tool by name |
||
54 | * |
||
55 | * @param string $name |
||
56 | * @return null|tools\tool_interface |
||
57 | */ |
||
58 | public function get_tool($name) |
||
71 | |||
72 | /** |
||
73 | * Configure tools in the proper order and remove |
||
74 | * any conflicting tools |
||
75 | * |
||
76 | * @param $tools array Array of available tools |
||
77 | * @return array Array of available tools |
||
78 | */ |
||
79 | protected function order_tools(array $tools) |
||
90 | } |
||
91 |