| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | View Code Duplication | public function getSelectExpression($as = null) |
|
| 16 | { |
||
| 17 | $tableName = $this->table->getName(); |
||
| 18 | $fieldName = $this->name; |
||
| 19 | |||
| 20 | if ($as) { |
||
| 21 | return "asText(`{$tableName}`.`{$fieldName}`) as `{$as}`"; |
||
| 22 | } |
||
| 23 | |||
| 24 | return "asText(`{$tableName}`.`{$fieldName}`) as `{$fieldName}`"; |
||
| 25 | } |
||
| 26 | |||
| 61 |