Completed
Branch resource-configuration-builder (c854d7)
by Kamil
13:53
created

SyliusTranslationResource   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTranslatableFields() 0 4 1
A setTranslatableFields() 0 6 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\ResourceBundle\DependencyInjection\Configuration;
13
14
/**
15
 * @author Kamil Kokot <[email protected]>
16
 */
17
final class SyliusTranslationResource extends AbstractSyliusResource
18
{
19
    /**
20
     * @var array
21
     */
22
    private $fields = [];
23
24
    /**
25
     * @return array
26
     */
27
    public function getTranslatableFields()
28
    {
29
        return $this->fields;
30
    }
31
32
    /**
33
     * @param array $fields
34
     *
35
     * @return $this
36
     */
37
    public function setTranslatableFields(array $fields)
38
    {
39
        $this->fields = $fields;
40
41
        return $this;
42
    }
43
}
44