MimeColumn   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 7
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A render_cell() 0 4 1
1
<?php
2
3
namespace Icybee\Modules\Files\Block\ManageBlock;
4
5
use Icybee\Block\ManageBlock\Column;
6
use Icybee\Block\ManageBlock\FilterDecorator;
7
8
/**
9
 * Representation of the `mime` column.
10
 */
11
class MimeColumn extends Column
12
{
13
	public function render_cell($record)
14
	{
15
		return new FilterDecorator($record, $this->id, $this->manager->is_filtering($this->id));
16
	}
17
}
18