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

ContainerTrait::getContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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
}