src/Hook/Hook.php
public function registerHook($callback) {
		if( !is_callable($callback) ) {
			throw new \Exception('Callback not callable');
		}
		if( in_array($callback, $this->callbacks) ) {
			throw new \Exception('Callback already registered');
		}
		$this->callbacks[] = $callback;
		return $this;
	}
public function registerHook($callback) {
		if( !is_callable($callback) ) {
			throw new \Exception('Callback not callable');
		}
		if( in_array($callback, $this->callbacks) ) {
			throw new \Exception('Callback already registered');
		}
		$this->callbacks[] = $callback;
		return $this;
	}
public function registerHook ( $ callback ) { if ( ! is_callable ( $ callback ) ) { throw new \ Exception ( 'Callback not callable' ) ; } if ( in_array ( $ callback , $ this -> callbacks ) ) { throw new \ Exception ( 'Callback already registered' ) ; } $ this -> callbacks [ ] = $ callback ; return $ this ; }
Register a new callback for this hook.

@param callback $callback A callback.
@throws \Exception
@return \Orpheus\Hook\Hook
@see register()
@see http://php.net/manual/en/language.pseudo-types.php#language.types.callback

Registers the $callback associating with this hook.
The callback will be called when this hook will be triggered.
Register a new callback for this hook .