Completed
Push — master ( 8048d4...881261 )
by Peter
01:59
created

WithConstructorInjection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Maslosoft\SignalsExamples;
10
11
use Maslosoft\Addendum\Interfaces\AnnotatedInterface;
12
use Maslosoft\SignalsExamples\Signals\ConstructorInjected;
13
14
/**
15
 * Model with constructor injection
16
 * @SlotFor(ConstructorInjected)
17
 *
18
 * @see ConstructorInjected
19
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
20
 */
21
class WithConstructorInjection implements AnnotatedInterface
22
{
23
24
	public function __construct(ConstructorInjected $signal)
25
	{
26
		$signal->emitted = true;
27
	}
28
29
}
30