| 1 | <?php namespace Bedard\Shop\Classes; |
||
| 5 | class DriverManager |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var \System\Classes\PluginManager Manager |
||
| 9 | */ |
||
| 10 | protected $manager; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Construct. |
||
| 14 | * |
||
| 15 | * @return void |
||
|
|
|||
| 16 | */ |
||
| 17 | public function __construct() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get all drivers. |
||
| 24 | * |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | public function getDrivers() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get a type of driver. |
||
| 50 | * |
||
| 51 | * @param string $type |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getDriversByType($type) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get the registration of a particular driver. |
||
| 63 | * |
||
| 64 | * @param string $class |
||
| 65 | * @return array|null |
||
| 66 | */ |
||
| 67 | public function getRegistration($class) |
||
| 77 | } |
||
| 78 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.