Bluz\EventManager\Event::__construct PHP Method

__construct() public method

Accept a target and its parameters.
public __construct ( string $name, string | object $target = null, array | object $params = null )
$name string Event name
$target string | object
$params array | object
    public function __construct($name, $target = null, $params = null)
    {
        $this->setName($name);
        if (null !== $target) {
            $this->setTarget($target);
        }
        if (null !== $params) {
            $this->setParams($params);
        }
    }