Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 12 |
TaskInfoBox | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 12 |
run | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
getTitle | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
getValue | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
getIcon | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
<?php | |
namespace humhub\modules\tasks\widgets; | |
use humhub\components\Widget; | |
use humhub\modules\tasks\models\Task; | |
class TaskInfoBox extends Widget | |
{ | |
/** | |
* @var string | |
*/ | |
public $title; | |
/** | |
* @var $string | |
*/ | |
public $value; | |
/** | |
* @var $string | |
*/ | |
public $icon; | |
/** | |
* @var string | |
*/ | |
public $cssClass; | |
public $textClass; | |
/** | |
* @inheritdoc | |
*/ | |
public function run() | |
{ | |
return $this->render('taskInfoBox', ['cssClass' => $this->cssClass, 'textClass' => $this->textClass, 'title' => $this->getTitle(), 'value' => $this->getValue(), 'icon' => $this->getIcon()]); | |
} | |
public function getTitle() | |
{ | |
return $this->title; | |
} | |
public function getValue() | |
{ | |
return $this->value; | |
} | |
public function getIcon() | |
{ | |
return $this->icon; | |
} | |
} |