Completed
Push — master ( a12db9...82664b )
by Julito
86:55 queued 55:35
created

SettingsHelper   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getSettings() 0 4 1
A getSettingsParameter() 0 4 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\SettingsBundle\Templating\Helper;
5
6
use Sylius\Bundle\SettingsBundle\Templating\Helper\SettingsHelperInterface;
7
use Symfony\Component\Templating\Helper\Helper;
8
9
/**
10
 * Class SettingsHelper
11
 * @package Chamilo\SettingsBundle\Templating\Helper
12
 */
13
//class SettingsHelper extends Helper implements SettingsHelperInterface
14
class SettingsHelper extends Helper
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getName()
20
    {
21
        return 'chamilo_settings';
22
    }
23
24
    public function getSettings($schemaAlias)
25
    {
26
        return $this->settingsManager->load($schemaAlias);
27
    }
28
29
    public function getSettingsParameter($schemaAlias)
30
    {
31
        //return $this->settingsManager->load($schemaAlias);
32
    }
33
34
35
}
36