| Total Complexity | 8 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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() |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Setter for tagList |
||
| 91 | */ |
||
| 92 | public function setTagList($tagList) |
||
| 97 | } |
||
| 98 | } |
||
| 99 |