CustomProxy.php 322 B

123456789101112131415161718
  1. <?php
  2. namespace Translator\Fixture;
  3. use Gedmo\Translator\TranslationProxy;
  4. class CustomProxy extends TranslationProxy
  5. {
  6. public function setName($name)
  7. {
  8. return $this->setTranslatedValue('name', $name);
  9. }
  10. public function getName()
  11. {
  12. return $this->getTranslatedValue('name');
  13. }
  14. }