Completed
Push — master ( b05893...eedd1b )
by Julito
09:17
created

AbstractSettingsSchema::setRepository()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Settings;
5
6
use Sylius\Bundle\SettingsBundle\Schema\AbstractSettingsBuilder;
7
use Sylius\Bundle\SettingsBundle\Schema\SchemaInterface;
8
9
/**
10
 * Class AbstractSettingsSchema.
11
 */
12
abstract class AbstractSettingsSchema implements SchemaInterface
13
{
14
    /**
15
     * @param array                   $allowedTypes
16
     * @param AbstractSettingsBuilder $builder
17
     */
18
    public function setMultipleAllowedTypes($allowedTypes, $builder)
19
    {
20
        foreach ($allowedTypes as $name => $type) {
21
            $builder->setAllowedTypes($name, $type);
22
        }
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getRepository()
29
    {
30
        return $this->repository;
31
    }
32
33
    /**
34
     * @param $repo
35
     */
36
    public function setRepository($repo)
37
    {
38
        $this->repository = $repo;
0 ignored issues
show
Bug Best Practice introduced by
The property repository does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
39
    }
40
}
41