for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pim\Bundle\CustomEntityBundle\Event;
use Pim\Bundle\CustomEntityBundle\Action\ActionInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Basic event for actions
*
* @author Antoine Guigan <[email protected]>
* @copyright 2013 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class ActionEvent extends Event
{
* @var ActionInterface
protected $action;
* @param ActionInterface $action
public function __construct(ActionInterface $action)
$this->action = $action;
}
* Returns the action launched by the event
* @return ActionInterface
public function getAction()
return $this->action;