src/SyHolloway/MrColor/Extension.php
public function trigger(Color $color, $method, $args)
    {
        if (is_callable(array($this, $method))) {
            array_unshift($args, $color);
            
            return call_user_func_array(array($this, $method), $args);
        }
        
        return null;
    }
public function trigger(Color $color, $method, $args)
    {
        if (is_callable(array($this, $method))) {
            array_unshift($args, $color);
            
            return call_user_func_array(array($this, $method), $args);
        }
        
        return null;
    }
public function trigger ( Color $ color , $ method , $ args ) { if ( is_callable ( array ( $ this , $ method ) ) ) { array_unshift ( $ args , $ color ) ; return call_user_func_array ( array ( $ this , $ method ) , $ args ) ; } return null ; }
Handel the method call.

@param  Color   $color   the color object the function was called on
@param  string  $method  the method name
@param  array   $args    arguments
@return mixed            this will be returned to the client code
Handel the method call .