for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the AsmTranslationLoaderBundle package.
*
* (c) Marc Aschmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Asm\TranslationLoaderBundle\Event;
use Asm\TranslationLoaderBundle\Model\TranslationInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Event that is triggered through a {@link TranslationInterface translation's}
* lifecycle.
* @author Christian Flothmann <[email protected]>
class TranslationEvent extends Event
{
const POST_PERSIST = 'postPersist';
const POST_UPDATE = 'postUpdate';
const POST_REMOVE = 'postRemove';
* @var TranslationInterface
private $translation;
* @param TranslationInterface $translation
public function __construct(TranslationInterface $translation)
$this->translation = $translation;
}
* @return TranslationInterface
public function getTranslation()
return $this->translation;