Passed
Push — master ( 4866cc...749535 )
by smiley
09:39
created

CharsetTrait::charset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Trait CharsetTrait
4
 *
5
 * @filesource   CharsetTrait.php
6
 * @created      08.01.2018
7
 * @package      chillerlan\Database\Query
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2018 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query;
14
15
trait CharsetTrait{
16
17
	protected string $charset;
18
19
	/**
20
	 * @param string $charset
21
	 *
22
	 * @return $this
23
	 */
24
	public function charset(string $charset):Statement{
25
		$this->charset = trim($charset);
26
27
		return $this;
28
	}
29
30
}
31