vendor/gedmo/doctrine-extensions/src/Translatable/Entity/MappedSuperclass/AbstractTranslation.php line 21
<?php
/*
* This file is part of the Doctrine Behavioral Extensions package.
* (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gedmo\Translatable\Entity\MappedSuperclass;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation
*
* @ORM\MappedSuperclass
*/
#[ORM\MappedSuperclass]
abstract class AbstractTranslation
{
/**
* @var int
*
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
#[ORM\Column(type: Types::INTEGER)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
protected $id;
/**
* @var string
*
* @ORM\Column(type="string", length=8)
*/
#[ORM\Column(type: Types::STRING, length: 8)]
protected $locale;
/**
* @var string
*
* @ORM\Column(name="object_class", type="string", length=191)
*/
#[ORM\Column(name: 'object_class', type: Types::STRING, length: 191)]
protected $objectClass;
/**
* @var string
*
* @ORM\Column(type="string", length=32)
*/
#[ORM\Column(type: Types::STRING, length: 32)]
protected $field;
/**
* @var string
*
* @ORM\Column(name="foreign_key", type="string", length=64)
*/
#[ORM\Column(name: 'foreign_key', type: Types::STRING, length: 64)]
protected $foreignKey;
/**
* @var string
*
* @ORM\Column(type="text", nullable=true)
*/
#[ORM\Column(type: Types::TEXT, nullable: true)]
protected $content;
/**
* Get id
*
* @return int $id
*/
public function getId()
{
return $this->id;
}
/**
* Set locale
*
* @param string $locale
*
* @return static
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Set field
*
* @param string $field
*
* @return static
*/
public function setField($field)
{
$this->field = $field;
return $this;
}
/**
* Get field
*
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* Set object class
*
* @param string $objectClass
*
* @return static
*/
public function setObjectClass($objectClass)
{
$this->objectClass = $objectClass;
return $this;
}
/**
* Get objectClass
*
* @return string
*/
public function getObjectClass()
{
return $this->objectClass;
}
/**
* Set foreignKey
*
* @param string $foreignKey
*
* @return static
*/
public function setForeignKey($foreignKey)
{
$this->foreignKey = $foreignKey;
return $this;
}
/**
* Get foreignKey
*
* @return string
*/
public function getForeignKey()
{
return $this->foreignKey;
}
/**
* Set content
*
* @param string $content
*
* @return static
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content
*
* @return string
*/
public function getContent()
{
return $this->content;
}
}