Completed
Push — master ( 74ac7c...809da3 )
by Damien
02:39
created

AbstractContainerAccessor::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Veto.
4
 * PHP Microframework.
5
 *
6
 * @author Damien Walsh <[email protected]>
7
 * @copyright Damien Walsh 2013-2014
8
 * @version 0.1
9
 * @package veto
10
 */
11
namespace Veto\DependencyInjection;
12
13
/**
14
 * Represents an object that can access a service container.
15
 *
16
 * @since 0.1
17
 */
18
abstract class AbstractContainerAccessor
19
{
20
    /**
21
     * @var Container
22
     */
23
    protected $container;
24
25
    /**
26
     * Set the service container.
27
     *
28
     * @param Container $container
29
     */
30
    public function setContainer(Container $container)
31
    {
32
        $this->container = $container;
33
    }
34
}
35