| Total Complexity | 6 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | abstract class BaseColumn |
||
| 19 | { |
||
| 20 | use Configurable; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string $label |
||
| 24 | */ |
||
| 25 | public $label; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string $attribute |
||
| 29 | */ |
||
| 30 | public $attribute; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string $value |
||
| 34 | */ |
||
| 35 | public $value; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string $filter |
||
| 39 | */ |
||
| 40 | public $filter; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * BaseColumn constructor. |
||
| 44 | * @param array $config |
||
| 45 | */ |
||
| 46 | public function __construct(array $config) |
||
| 47 | { |
||
| 48 | $this->loadConfig($config); |
||
| 49 | |||
| 50 | $this->buildFilter(); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param $row |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getValue($row): string |
||
|
|
|||
| 58 | { |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get title for grid head. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getLabel(): string |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Get attribute. |
||
| 73 | * |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getAttribute(): string |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Build filter for grid. |
||
| 83 | * |
||
| 84 | * @return void |
||
| 85 | */ |
||
| 86 | protected function buildFilter() |
||
| 91 | ]); |
||
| 92 | } |
||
| 95 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.