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() |
||
56 | |||
57 | /** |
||
58 | * Get tool by name |
||
59 | * |
||
60 | * @param string $name |
||
61 | * @return null|tools\tool_interface |
||
62 | */ |
||
63 | public function get_tool($name) |
||
76 | } |
||
77 |