SizeColumn   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 1
1
<?php
2
3
/*
4
 * This file is part of the Icybee package.
5
 *
6
 * (c) Olivier Laviale <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Icybee\Modules\Files\Block\ManageBlock;
13
14
use Icybee\Block\ManageBlock;
15
16
/**
17
 * Representation of the `size` column.
18
 */
19
class SizeColumn extends ManageBlock\SizeColumn
20
{
21
	use ManageBlock\CriterionColumnTrait;
22
23
	public function __construct(ManageBlock $manager, $id, array $options = [])
24
	{
25
		parent::__construct($manager, $id, $options + [
26
27
			'class' => 'cell-fitted pull-right',
28
			'filters' => [
29
30
				'options' => [
31
32
					'=l' => 'Large',
33
					'=m' => 'Medium',
34
					'=s' => 'Small'
35
36
				]
37
			]
38
		]);
39
	}
40
}
41