for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\EventDispatcher\Tests\Fixtures\Events;
use ByTIC\EventDispatcher\Events\Dispatchable;
use ByTIC\EventDispatcher\Events\EventInterface;
use ByTIC\EventDispatcher\Events\EventTrait;
use Psr\EventDispatcher\StoppableEventInterface;
/**
* Class Event
* @package ByTIC\EventDispatcher\Tests\Fixtures\Events
*/
class Event implements EventInterface, StoppableEventInterface
{
use EventTrait;
use Dispatchable;
public function __construct()
$this->arguments = func_get_args();
}
protected $data = '';
* @param $data
public function addData($data)
$this->data .= $data;
* @return string
public function getData(): string
return $this->data;