Article::getTag()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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