for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Event\Image;
use App\Entity\AbstractAppEntity;
use App\Entity\Image;
use App\Entity\Trick;
use App\Event\AbstractAppEvent;
abstract class AbstractImageEvent extends AbstractAppEvent
{
const NAME = 'user.defineMe';
/**
* @var Image
*/
protected $entity;
* @var Trick
protected $trick;
public function __construct(Image $image, Trick $trick)
$this->entity = $image;
$this->trick = $trick;
}
* @return Image
public function getEntity(): AbstractAppEntity
return $this->entity;
public function getTrick(): Trick
return $this->trick;