for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\TranslationBundle\Traits;
/**
* If you don't want to use trait, you can extend AbstractTranslatable instead.
* @author Nicolas Bastien <[email protected]>
trait TranslatableTrait
{
* @var string
protected $locale;
* @param string $locale
public function setLocale($locale)
$this->locale = $locale;
}
* @return string
public function getLocale()
return $this->locale;