Completed
Push — master ( 0f7b01...b73efb )
by Bukashk0zzz
02:11
created

Category::setParentId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
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 Bukashk0zzz\YmlGenerator\Model;
13
14
/**
15
 * Class Category
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class Category
20
{
21
    /**
22
     * @var int
23
     */
24
    private $id;
25
26
    /**
27
     * @var int
28
     */
29
    private $parentId;
30
31
    /**
32
     * @var string
33
     */
34
    private $name;
35
36
    /**
37
     * @return int
38
     */
39
    public function getId()
40
    {
41
        return $this->id;
42
    }
43
44
    /**
45
     * @param int $id
46
     * @return Category
47
     */
48
    public function setId($id)
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return int
57
     */
58
    public function getParentId()
59
    {
60
        return $this->parentId;
61
    }
62
63
    /**
64
     * @param int $parentId
65
     * @return Category
66
     */
67
    public function setParentId($parentId)
68
    {
69
        $this->parentId = $parentId;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getName()
78
    {
79
        return $this->name;
80
    }
81
82
    /**
83
     * @param string $name
84
     * @return Category
85
     */
86
    public function setName($name)
87
    {
88
        $this->name = $name;
89
90
        return $this;
91
    }
92
}
93