Passed
Push — master ( eeb30b...6c0a39 )
by Rick
01:37
created

ContainerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainer() 0 4 1
A setContainer() 0 4 1
1
<?php
2
/**
3
 * Copyright 2017 NanoSector
4
 *
5
 * You should have received a copy of the MIT license with the project.
6
 * See the LICENSE file for more information.
7
 */
8
9
namespace Yoshi2889\Container;
10
11
12
trait ContainerTrait
13
{
14
	/**
15
	 * @var ComponentContainer
16
	 */
17
	protected $container;
18
19
	/**
20
	 * @return ComponentContainer
21
	 */
22 1
	public function getContainer(): ComponentContainer
23
	{
24 1
		return $this->container;
25
	}
26
27
	/**
28
	 * @param ComponentContainer $container
29
	 */
30 1
	public function setContainer(ComponentContainer $container)
31
	{
32 1
		$this->container = $container;
33
	}
34
}