Passed
Push — master ( 13c3e7...28eebb )
by Julien
01:28 queued 15s
created

Article::setTag()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Mapado\RestClientSdk\Tests\Model\Issue75;
4
5
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
6
7
/**
8
 * @Rest\Entity(key="articles")
9
 */
10
class Article
11
{
12
    /**
13
     * @Rest\Id
14
     * @Rest\Attribute(name="@id", type="string")
15
     */
16
    private $iri;
17
18
    /**
19
     * @Rest\Attribute(name="title", type="string")
20
     */
21
    private $title;
22
23
    /**
24
     * @Rest\ManyToOne(name="tag", targetEntity="Tag")
25
     */
26
    private $tag;
27
28
    /**
29
     * @Rest\OneToMany(name="tagList", targetEntity="Tag")
30
     */
31
    private $tagList;
32
33
    public function setTitle($title)
34
    {
35
        $this->title = $title;
36
    }
37
38
    public function getTitle()
39
    {
40
        return $this->title;
41
    }
42
43
    /**
44
     * Getter for iri
45
     *
46
     * @return string
47
     */
48
    public function getIri()
49
    {
50
        return $this->iri;
51
    }
52
53
    /**
54
     * Setter for iri
55
     *
56
     * @param string $iri
57
     *
58
     * @return Article
59
     */
60
    public function setIri($iri)
61
    {
62
        $this->iri = $iri;
63
64
        return $this;
65
    }
66
67
    public function setTag($tag)
68
    {
69
        $this->tag = $tag;
70
    }
71
72
    public function getTag()
73
    {
74
        return $this->tag;
75
    }
76
77
    /**
78
     * Getter for tagList
79
     *
80
     * @return array
81
     */
82
    public function getTagList()
83
    {
84
        return $this->tagList;
85
    }
86
87
    /**
88
     * Setter for tagList
89
     */
90
    public function setTagList($tagList)
91
    {
92
        $this->tagList = $tagList;
93
94
        return $this;
95
    }
96
}
97