| Total Complexity | 9 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Vendor extends \hidev\base\Component |
||
| 19 | { |
||
| 20 | use \hiqdev\yii2\collection\ObjectTrait; |
||
| 21 | |||
| 22 | public function getLabel() |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getTitle() |
||
| 28 | { |
||
| 29 | return $this->getItem('title') ?: $this->getItem('description') ?: Helper::titleize($this->name); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getTitleAndHomepage() |
||
| 33 | { |
||
| 34 | return $this->title . ($this->homepage ? ' (' . $this->homepage . ')' : ''); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getDescription() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |