123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <?php
- namespace Gedmo\Translatable\Document\MappedSuperclass;
- use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoODM;
- /**
- * Gedmo\Translatable\Document\AbstractPersonalTranslation
- *
- * @MongoODM\MappedSuperclass
- */
- abstract class AbstractPersonalTranslation
- {
- /**
- * @var integer $id
- *
- * @MongoODM\Id
- */
- protected $id;
- /**
- * @var string $locale
- *
- * @MongoODM\String
- */
- protected $locale;
- /**
- * Related entity with ManyToOne relation
- * must be mapped by user
- */
- protected $object;
- /**
- * @var string $field
- *
- * @MongoODM\String
- */
- protected $field;
- /**
- * @var string $content
- *
- * @MongoODM\String
- */
- protected $content;
- /**
- * Get id
- *
- * @return integer $id
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set locale
- *
- * @param string $locale
- * @return AbstractPersonalTranslation
- */
- public function setLocale($locale)
- {
- $this->locale = $locale;
- return $this;
- }
- /**
- * Get locale
- *
- * @return string $locale
- */
- public function getLocale()
- {
- return $this->locale;
- }
- /**
- * Set field
- *
- * @param string $field
- * @return AbstractPersonalTranslation
- */
- public function setField($field)
- {
- $this->field = $field;
- return $this;
- }
- /**
- * Get field
- *
- * @return string $field
- */
- public function getField()
- {
- return $this->field;
- }
- /**
- * Set object related
- *
- * @param object $object
- * @return AbstractPersonalTranslation
- */
- public function setObject($object)
- {
- $this->object = $object;
- return $this;
- }
- /**
- * Get object related
- *
- * @return string $object
- */
- public function getObject()
- {
- return $this->object;
- }
- /**
- * Set content
- *
- * @param string $content
- * @return AbstractPersonalTranslation
- */
- public function setContent($content)
- {
- $this->content = $content;
- return $this;
- }
- /**
- * Get content
- *
- * @return string $content
- */
- public function getContent()
- {
- return $this->content;
- }
- }
|