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() |
||
54 | |||
55 | /** |
||
56 | * Get tool by name |
||
57 | * |
||
58 | * @param string $name |
||
59 | * @return null|tool_interface |
||
60 | */ |
||
61 | public function get_tool($name) |
||
74 | } |
||
75 |