BeforeRenderEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace ICanBoogie\View\View;
4
5
use ICanBoogie\Event;
6
use ICanBoogie\View\View;
7
8
/**
9
 * Event class for the `ICanBoogie\View\View::render:before` event.
10
 *
11
 * Event hooks may use this event to alter the view before it is rendered, or provide a cached
12
 * result.
13
 */
14
class BeforeRenderEvent extends Event
15
{
16
	const TYPE = 'render:before';
17
18
	/**
19
	 * @var string
20
	 */
21
	public $result;
22
23
	/**
24
	 * @param View $target
25
	 * @param string $result
26
	 */
27
	public function __construct(View $target, &$result)
28
	{
29
		$this->result = &$result;
30
31
		parent::__construct($target, self::TYPE);
32
	}
33
}
34