BlocksByDayControl::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 9.4285
1
<?php
2
3
namespace App\Components;
4
5
use App\Models\BlockModel;
6
7
class BlocksByDayControl extends ABlocksByDayControl implements IBlocksByDayControl
8
{
9
10
	const TEMPLATE_NAME = 'BlocksByDay';
11
12
	/**
13
	 * @param BlockModel $model
14
	 */
15
	public function __construct(BlockModel $model, ProgramsControl $control)
16
	{
17
		$this->setBlockModel($model);
18
		$this->setProgramsControl($control);
19
	}
20
21
}
22