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

CharsetTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A charset() 0 4 1
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