ModuleOptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCloners() 0 4 1
A setCloners() 0 5 1
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/cloner
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\Cloner\Options;
7
8
use Zend\Stdlib\AbstractOptions;
9
use Nnx\ModuleOptions\ModuleOptionsInterface;
10
11
/**
12
 * Class ModuleOptions
13
 *
14
 * @package Nnx\Cloner\Options
15
 */
16
class ModuleOptions extends AbstractOptions implements ModuleOptionsInterface
17
{
18
    /**
19
     * @var array
20
     */
21
    private $cloners = [];
22
23
    /**
24
     * @return array
25
     */
26
    public function getCloners()
27
    {
28
        return $this->cloners;
29
    }
30
31
    /**
32
     * @param array $cloners
33
     *
34
     * @return $this
35
     */
36
    public function setCloners($cloners)
37
    {
38
        $this->cloners = $cloners;
39
        return $this;
40
    }
41
}
42