| 1 | <?php /** ConnectionMicro */ |
||
| 17 | abstract class Connection implements IConnection |
||
| 18 | { |
||
| 19 | private $driver; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * Make connection to database with PDO driver |
||
| 24 | * |
||
| 25 | * @access public |
||
| 26 | * @param string $dsn DSN connection string |
||
| 27 | * @param array $config |
||
| 28 | * @param array $options |
||
| 29 | */ |
||
| 30 | public function __construct($dsn, $config = [], array $options = []) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param $dsn |
||
| 36 | * @param array $config |
||
| 37 | * @param array $options |
||
| 38 | */ |
||
| 39 | public function setDriver($dsn, $config = [], array $options = []) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * is triggered when invoking inaccessible methods in an object context. |
||
| 50 | * |
||
| 51 | * @access public |
||
| 52 | * |
||
| 53 | * @param $name string |
||
| 54 | * @param $arguments array |
||
| 55 | * |
||
| 56 | * @return mixed |
||
| 57 | * @throws \BadMethodCallException |
||
| 58 | */ |
||
| 59 | public function __call($name, $arguments) |
||
| 67 | } |
||
| 68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.