vendor/gedmo/doctrine-extensions/src/Translator/Entity/Translation.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Doctrine Behavioral Extensions package.
  4.  * (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
  5.  * For the full copyright and license information, please view the LICENSE
  6.  * file that was distributed with this source code.
  7.  */
  8. namespace Gedmo\Translator\Entity;
  9. use Doctrine\DBAL\Types\Types;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Gedmo\Translator\Translation as BaseTranslation;
  12. /**
  13.  * Entity translation class.
  14.  *
  15.  * @author Konstantin Kudryashov <ever.zet@gmail.com>
  16.  *
  17.  * @ORM\MappedSuperclass
  18.  */
  19. #[ORM\MappedSuperclass]
  20. abstract class Translation extends BaseTranslation
  21. {
  22.     /**
  23.      * @var int
  24.      *
  25.      * @ORM\Column(type="integer")
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue
  28.      */
  29.     #[ORM\Column(typeTypes::INTEGER)]
  30.     #[ORM\Id]
  31.     #[ORM\GeneratedValue]
  32.     protected $id;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(type="string", length=8)
  37.      */
  38.     #[ORM\Column(typeTypes::STRINGlength8)]
  39.     protected $locale;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(type="string", length=32)
  44.      */
  45.     #[ORM\Column(typeTypes::STRINGlength32)]
  46.     protected $property;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  53.     protected $value;
  54.     /**
  55.      * Get id
  56.      *
  57.      * @return int $id
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63. }