Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class Identifier extends AbstractAsset |
||
17 | { |
||
18 | /** |
||
19 | 22708 | * @param string $identifier Identifier name to wrap. |
|
20 | * @param bool $quote Whether to force quoting the given identifier. |
||
21 | 22708 | */ |
|
22 | public function __construct(string $identifier, bool $quote = false) |
||
23 | 22708 | { |
|
24 | 22708 | $this->_setName($identifier); |
|
25 | |||
26 | if (! $quote || $this->_quoted) { |
||
27 | 11239 | return; |
|
28 | 11239 | } |
|
29 | |||
30 | $this->_setName('"' . $this->getName() . '"'); |
||
31 | } |
||
32 | |||
33 | public function getName() : string |
||
39 | } |
||
40 | } |
||
41 |