SizeColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 8
nc 1
nop 3
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