Completed
Push — master ( 32cb15...ce22ce )
by Alexander
05:39 queued 02:43
created

Driver::getDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Driver handler
4
 *
5
 * @file      Driver.php
6
 *
7
 * PHP version 5.4+
8
 *
9
 * @author    Yancharuk Alexander <alex at itvault dot info>
10
 * @copyright © 2012-2015 Alexander Yancharuk <alex at itvault at info>
11
 * @date      2015-12-26 14:42
12
 * @license   The BSD 3-Clause License
13
 *            <http://opensource.org/licenses/BSD-3-Clause>
14
 */
15
16
namespace Traits;
17
18
trait Driver
19
{
20
	/** @var  mixed */
21
	protected $driver;
22
23
	/**
24
	 * Get adapter driver
25
	 *
26
	 * @return mixed
27
	 */
28 2
	public function getDriver()
29
	{
30 2
		return $this->driver;
31
	}
32
33
	/**
34
	 * Set adapter driver
35
	 *
36
	 * @param mixed $driver
37
	 */
38 2
	public function setDriver($driver)
39
	{
40 2
		$this->driver = $driver;
41 2
	}
42
}
43