for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.5.0
*/
namespace Quantum\Exceptions;
* Class HookException
* @package Quantum\Exceptions
class HookException extends \Exception
{
* Duplicate hook implementer message
const DUPLICATE_HOOK_IMPLEMENTER = 'Duplicate Hook implementer was detected';
* Undeclared hook name message
const UNDECLARED_HOOK_NAME = 'The Hook `{%1}` was not declared';
* @return \Quantum\Exceptions\HookException
public static function duplicateHookImplementer(): HookException
return new static(self::DUPLICATE_HOOK_IMPLEMENTER, E_WARNING);
}
* @param string $name
public static function undeclaredHookName(string $name): HookException
return new static(_message(self::UNDECLARED_HOOK_NAME, $name), E_WARNING);