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

AbstractContainerAccessor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10

1 Method

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