for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the XiideaEasyAuditBundle package.
*
* (c) Xiidea <http://www.xiidea.net>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Xiidea\EasyAuditBundle\Annotation;
/**
* Annotation for ORM Subscribed Event.
* @Annotation
* @Target({"CLASS"})
* @author Roni Saha <[email protected]>
/* @final */ class SubscribeDoctrineEvents
{
public $events = array();
public function __construct(array $values)
if (isset($values['value'])) {
$values['events'] = $values['value'];
}
if (!isset($values['events'])) {
return;
$this->events = is_array($values['events']) ? $values['events'] : array_map('trim', explode(',', $values['events']));
$this->events = array_filter($this->events);