/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/php-tools/src/Event
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/php-tools/src/Event/Event.php (1877B)
name = $name;
$this->args = (array)$args;
}
/**
* Gets the argument with the specified index of this event
* @param int $index Index
* @return mixed
* @throws \Tools\Exception\KeyNotExistsException
*/
public function getArg(int $index)
{
Exceptionist::arrayKeyExists($index, $this->args, sprintf('Argument with index `%s` does not exist', $index));
return $this->args[$index];
}
/**
* Gets the arguments of this event
* @return array
*/
public function getArgs(): array
{
return $this->args;
}
/**
* Gets the name of the event
* @return string
*/
public function getName(): string
{
return $this->name;
}
}