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\Attribute;
/**
* Attribute for ORM Subscribed Event.
* @author Roni Saha <[email protected]>
#[\Attribute(\Attribute::TARGET_CLASS)]
class SubscribeDoctrineEvents
{
public array $events = [];
public function __construct(array|string $values)
$this->events = is_array($values) ? $values : array_map('trim', explode(',', $values));
is_array($values)
true
$this->events = array_filter($this->events);
}