1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?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\String as MongoString;
- /**
- * 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
- *
- * @MongoString
- */
- protected $locale;
- /**
- * @var string $property
- *
- * @MongoString
- */
- protected $property;
- /**
- * @var string $value
- *
- * @MongoString
- */
- protected $value;
- /**
- * Get id
- *
- * @return integer $id
- */
- public function getId()
- {
- return $this->id;
- }
- }
|