| 1 | <?php |
||
| 29 | abstract class Drivers |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * Stores the loader object |
||
| 33 | **/ |
||
| 34 | protected $loader = null; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Stores the driver configuration |
||
| 38 | **/ |
||
| 39 | protected $config = []; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Creates the driver handler object |
||
| 43 | * |
||
| 44 | * @param array $config Configuration details as an array |
||
| 45 | * |
||
| 46 | * @return \csphere\core\service\Drivers |
||
| 47 | **/ |
||
| 48 | |||
| 49 | public function __construct(array $config) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Returns the name of the driver |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | **/ |
||
| 68 | |||
| 69 | public function driver() |
||
| 73 | } |
||
| 74 |
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.