| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function getCellContent($entity) |
||
| 32 | { |
||
| 33 | $obj = $this->getCellValue($entity); |
||
| 34 | if (is_object($obj)) { |
||
| 35 | $result = $obj->{'get' . ucfirst($this->labelAttribute)}(); |
||
| 36 | return $this->format === 'html' |
||
| 37 | ? $result |
||
| 38 | : htmlspecialchars($result); |
||
| 39 | } |
||
| 40 | return is_string($obj) ? $obj : ''; |
||
| 41 | } |
||
| 51 |