| Total Complexity | 8 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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() |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Getter for tagList |
||
| 79 | * |
||
| 80 | * @return array |
||
| 81 | */ |
||
| 82 | public function getTagList() |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * Setter for tagList |
||
| 89 | */ |
||
| 90 | public function setTagList($tagList) |
||
| 95 | } |
||
| 96 | } |
||
| 97 |