123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
-
- namespace Sluggable\Fixture;
-
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
-
-
- class Page
- {
-
-
- private $id;
-
-
-
- private $content;
-
-
-
- private $slug;
-
-
-
- private $articles;
-
- public function getId()
- {
- return $this->id;
- }
-
- public function addArticle(TranslatableArticle $article)
- {
- $article->setPage($this);
- $this->articles[] = $article;
- }
-
- public function getArticles()
- {
- return $this->articles;
- }
-
- public function setContent($content)
- {
- $this->content = $content;
- }
-
- public function getContent()
- {
- return $this->content;
- }
-
- public function getSlug()
- {
- return $this->slug;
- }
- }
|