Mark V
1: <?php
2: namespace MOC\V\Component\Database\Component\Parameter\Repository;
3:
4: use MOC\V\Component\Database\Component\IParameterInterface;
5: use MOC\V\Component\Database\Component\Parameter\Parameter;
6:
7: /**
8: * Class DriverParameter
9: *
10: * @package MOC\V\Component\Database\Component\Parameter\Repository
11: */
12: class DriverParameter extends Parameter implements IParameterInterface
13: {
14:
15: const DRIVER_PDO_MYSQL = 'pdo_mysql';
16: const DRIVER_PDO_ORACLE = 'pdo_oci';
17: const DRIVER_PDO_PGSQL = 'pdo_pgsql';
18: const DRIVER_PDO_SQLITE = 'pdo_sqlite';
19: const DRIVER_PDO_SQLSRV = 'pdo_sqlsrv';
20: const DRIVER_DRIZZLE_PDO_MYSQL = 'drizzle_pdo_mysql';
21: const DRIVER_MYSQLI = 'mysqli';
22: const DRIVER_ORACLE = 'oci8';
23: const DRIVER_SQLSRV = 'sqlsrv';
24:
25: /** @var string $Driver */
26: private $Driver = self::DRIVER_PDO_MYSQL;
27:
28: /**
29: * @param string $Driver
30: */
31: public function __construct($Driver)
32: {
33:
34: $this->setDriver($Driver);
35: }
36:
37: /**
38: * @return string
39: */
40: public function getDriver()
41: {
42:
43: return $this->Driver;
44: }
45:
46: /**
47: * @param string $Driver
48: */
49: public function setDriver($Driver)
50: {
51:
52: $this->Driver = $Driver;
53: }
54: }
55: