123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?php
-
- namespace Translatable\Fixture;
-
- use Gedmo\Translatable\Translatable;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
-
-
- class Article implements Translatable
- {
-
- private $id;
-
-
-
- private $title;
-
-
-
- private $content;
-
-
-
- private $views;
-
-
-
- private $author;
-
-
-
- private $locale;
-
-
-
- private $comments;
-
- public function getId()
- {
- return $this->id;
- }
-
- public function addComment(Comment $comment)
- {
- $comment->setArticle($this);
- $this->comments[] = $comment;
- }
-
- public function getComments()
- {
- return $this->comments;
- }
-
- public function setTitle($title)
- {
- $this->title = $title;
- }
-
- public function getTitle()
- {
- return $this->title;
- }
-
- public function setContent($content)
- {
- $this->content = $content;
- }
-
- public function getContent()
- {
- return $this->content;
- }
-
- public function setTranslatableLocale($locale)
- {
- $this->locale = $locale;
- }
-
- public function setViews ($views)
- {
- $this->views = $views;
- }
-
- public function getViews ()
- {
- return $this->views;
- }
-
- public function setAuthor($author)
- {
- $this->author = $author;
- }
-
- public function getAuthor()
- {
- return $this->author;
- }
- }
|