Completed
Push — master ( 860366...55daec )
by Kamil
19:37
created

SettableThemeContext   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTheme() 0 4 1
A getTheme() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\ThemeBundle\Context;
13
14
use Sylius\Bundle\ThemeBundle\Model\ThemeInterface;
15
16
/**
17
 * @author Kamil Kokot <[email protected]>
18
 */
19
final class SettableThemeContext implements ThemeContextInterface
20
{
21
    /**
22
     * @var ThemeInterface
23
     */
24
    private $theme;
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function setTheme(ThemeInterface $theme)
30
    {
31
        $this->theme = $theme;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getTheme()
38
    {
39
        return $this->theme;
40
    }
41
}
42