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

WithConstructorInjection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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