Completed
Push — master ( 1337ee...b15437 )
by Wanderson
01:57
created

Option::toSql()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace Win\DAO;
4
5
/**
6
 * Options SQL
7
 * Permite uso de opções SQL: Order by, Group by, etc
8
 */
9
class Option {
10
11
	private $option;
12
13
	/** Construtor */
14
	public function __construct() {
15
		$this->option = 'ORDER BY 1 DESC';
16
	}
17
18
	/**
19
	 * Define as opções
20
	 * @param string $option
21
	 */
22
	public function set($option) {
23
		$this->option = $option;
24
	}
25
26
	/** @return string */
27
	public function toSql() {
28
		return $this->option;
29
	}
30
31
}
32