123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?php
- namespace Gedmo\Translatable\Entity\MappedSuperclass;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation
- *
- * @ORM\MappedSuperclass
- */
- abstract class AbstractTranslation
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue
- */
- protected $id;
- /**
- * @var string $locale
- *
- * @ORM\Column(type="string", length=8)
- */
- protected $locale;
- /**
- * @var string $objectClass
- *
- * @ORM\Column(name="object_class", type="string", length=255)
- */
- protected $objectClass;
- /**
- * @var string $field
- *
- * @ORM\Column(type="string", length=32)
- */
- protected $field;
- /**
- * @var string $foreignKey
- *
- * @ORM\Column(name="foreign_key", type="string", length=64)
- */
- protected $foreignKey;
- /**
- * @var string $content
- *
- * @ORM\Column(type="text", nullable=true)
- */
- protected $content;
- /**
- * Get id
- *
- * @return integer $id
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set locale
- *
- * @param string $locale
- * @return AbstractTranslation
- */
- 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 AbstractTranslation
- */
- public function setField($field)
- {
- $this->field = $field;
- return $this;
- }
- /**
- * Get field
- *
- * @return string $field
- */
- public function getField()
- {
- return $this->field;
- }
- /**
- * Set object class
- *
- * @param string $objectClass
- * @return AbstractTranslation
- */
- public function setObjectClass($objectClass)
- {
- $this->objectClass = $objectClass;
- return $this;
- }
- /**
- * Get objectClass
- *
- * @return string $objectClass
- */
- public function getObjectClass()
- {
- return $this->objectClass;
- }
- /**
- * Set foreignKey
- *
- * @param string $foreignKey
- * @return AbstractTranslation
- */
- public function setForeignKey($foreignKey)
- {
- $this->foreignKey = $foreignKey;
- return $this;
- }
- /**
- * Get foreignKey
- *
- * @return string $foreignKey
- */
- public function getForeignKey()
- {
- return $this->foreignKey;
- }
- /**
- * Set content
- *
- * @param string $content
- * @return AbstractTranslation
- */
- public function setContent($content)
- {
- $this->content = $content;
- return $this;
- }
- /**
- * Get content
- *
- * @return string $content
- */
- public function getContent()
- {
- return $this->content;
- }
- }
|