| 1 | <?php |
||
| 17 | class ViewTranslation |
||
| 18 | { |
||
| 19 | use Translation; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @Serializer\Groups({"search"}) |
||
| 23 | */ |
||
| 24 | protected $locale; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | * |
||
| 29 | * @Assert\NotBlank() |
||
| 30 | * @ORM\Column(name="name", type="string", length=255) |
||
| 31 | * @Serializer\Groups({"search"}) |
||
| 32 | */ |
||
| 33 | protected $name; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | * |
||
| 38 | * @Gedmo\Slug(handlers={ |
||
| 39 | * @Gedmo\SlugHandler(class="Victoire\Bundle\BusinessEntityBundle\Handler\TwigSlugHandler" |
||
| 40 | * )},fields={"name"}, updatable=false, unique=false) |
||
| 41 | * @ORM\Column(name="slug", type="string", length=255) |
||
| 42 | */ |
||
| 43 | protected $slug; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var string |
||
| 47 | * This property is computed by the method PageSubscriber::buildUrl |
||
| 48 | */ |
||
| 49 | protected $url; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get name. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getName() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Set name. |
||
| 63 | * |
||
| 64 | * @param string $name |
||
| 65 | * |
||
| 66 | * @return View |
||
| 67 | */ |
||
| 68 | public function setName($name) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Set slug. |
||
| 77 | * |
||
| 78 | * @param string $slug |
||
| 79 | * |
||
| 80 | * @return View |
||
| 81 | */ |
||
| 82 | public function setSlug($slug) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Get slug. |
||
| 91 | * |
||
| 92 | * @return string |
||
| 93 | */ |
||
| 94 | public function getSlug() |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @return string |
||
| 101 | */ |
||
| 102 | public function getUrl() |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @param string $url |
||
| 109 | */ |
||
|
|
|||
| 110 | public function setUrl($url) |
||
| 116 | |||
| 117 | /** |
||
| 118 | * {@inheritdoc} |
||
| 119 | */ |
||
| 120 | public static function getTranslatableEntityClass() |
||
| 124 | } |
||
| 125 |