Property   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
A getValue() 0 4 1
A setValue() 0 6 1
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/jms-serializer-module
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\JmsSerializerModule\DataContainer;
7
8
/**
9
 * Class Property
10
 *
11
 * @package Nnx\JmsSerializerModule\DataContainer
12
 */
13
class Property
14
{
15
    /**
16
     * Имя поля
17
     *
18
     * @var string
19
     */
20
    protected $name;
21
22
    /**
23
     * Значение поля
24
     *
25
     * @var string
26
     */
27
    protected $value;
28
29
    /**
30
     * Устанавливает имя поля
31
     *
32
     * @return string
33
     */
34
    public function getName()
35
    {
36
        return $this->name;
37
    }
38
39
    /**
40
     * Возвращает имя поля
41
     *
42
     * @param string $name
43
     *
44
     * @return $this
45
     */
46
    public function setName($name)
47
    {
48
        $this->name = $name;
49
50
        return $this;
51
    }
52
53
    /**
54
     * Устанавливает значение поля
55
     *
56
     * @return string
57
     */
58
    public function getValue()
59
    {
60
        return $this->value;
61
    }
62
63
    /**
64
     * Возвращает значение поля
65
     *
66
     * @param string $value
67
     *
68
     * @return $this
69
     */
70
    public function setValue($value)
71
    {
72
        $this->value = $value;
73
74
        return $this;
75
    }
76
}
77