This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<?php
namespace Gedmo\Translator\Document;
use Gedmo\Translator\Translation as BaseTranslation;
use Doctrine\ODM\MongoDB\Mapping\Annotations\MappedSuperclass;
use Doctrine\ODM\MongoDB\Mapping\Annotations\Id;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/**
* Document translation class.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* @MappedSuperclass
*/
abstract class Translation extends BaseTranslation
{
/**
* @Id
*/
protected $id;
/**
* @var string $locale
*
* @ODM\Field(type="string")
*/
protected $locale;
/**
* @var string $property
*
* @ODM\Field(type="string")
*/
protected $property;
/**
* @var string $value
*
* @ODM\Field(type="string")
*/
protected $value;
/**
* Get id
*
* @return integer $id
*/
public function getId()
{
return $this->id;
}
}