Completed
Push — master ( 07b302...111bcd )
by Andrey
02:58
created

PluginOptions::getOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/jms-serializer-module
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\JmsSerializerModule\Options;
7
8
use Zend\Stdlib\AbstractOptions;
9
10
/**
11
 * Class PluginOptions
12
 *
13
 * @package Nnx\JmsSerializerModule\Options
14
 */
15
class PluginOptions extends AbstractOptions
16
{
17
    /**
18
     * Имя плагина
19
     *
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * Настройки плагина
26
     *
27
     * @var array
28
     */
29
    protected $options;
30
31
    /**
32
     * Возвращает имя плагина
33
     *
34
     * @return string
35
     */
36
    public function getName()
37
    {
38
        return $this->name;
39
    }
40
41
    /**
42
     * Устанавливает имя плагина
43
     *
44
     * @param string $name
45
     *
46
     * @return $this
47
     */
48
    public function setName($name)
49
    {
50
        $this->name = $name;
51
52
        return $this;
53
    }
54
55
    /**
56
     * Возвращает настройки плагина
57
     *
58
     * @return array
59
     */
60
    public function getOptions()
61
    {
62
        return $this->options;
63
    }
64
65
    /**
66
     * Устанавливает настройки плагина
67
     *
68
     * @param array $options
69
     *
70
     * @return $this
71
     */
72
    public function setOptions($options)
73
    {
74
        $this->options = $options;
75
76
        return $this;
77
    }
78
}
79