| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class CmsComment |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @Id |
||
| 13 | * @Column(type="CustomIdObject") |
||
| 14 | * @GeneratedValue(strategy="NONE") |
||
| 15 | */ |
||
| 16 | public $id; |
||
| 17 | /** |
||
| 18 | * @Column(type="string", length=255) |
||
| 19 | */ |
||
| 20 | public $topic; |
||
| 21 | /** |
||
| 22 | * @Column(type="string") |
||
| 23 | */ |
||
| 24 | public $text; |
||
| 25 | /** |
||
| 26 | * @ManyToOne(targetEntity="CmsArticle", inversedBy="comments") |
||
| 27 | * @JoinColumn(name="article_id", referencedColumnName="id") |
||
| 28 | */ |
||
| 29 | public $article; |
||
| 30 | |||
| 31 | public function setArticle(CmsArticle $article) { |
||
| 32 | $this->article = $article; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function __toString() { |
||
| 37 | } |
||
| 38 | } |
||
| 39 |