src/Matcher.php
public static function get($name = null, $target = '')
    {
        if (!func_num_args()) {
            return static::$_matchers;
        }
        if ($target === true) {
            return isset(static::$_matchers[$name]) ? static::$_matchers[$name] : [];
        }
        if ($target === '') {
            if (isset(static::$_matchers[$name][''])) {
                return static::$_matchers[$name][''];
            }
            throw new Exception("Unexisting default matcher attached to `'{$name}'`.");
        }
        if (isset(static::$_matchers[$name][$target])) {
            return static::$_matchers[$name][$target];
        } elseif (isset(static::$_matchers[$name][''])) {
            return static::$_matchers[$name][''];
        }
        throw new Exception("Unexisting matcher attached to `'{$name}'` for `{$target}`.");
    }
public static function get($name = null, $target = '')
    {
        if (!func_num_args()) {
            return static::$_matchers;
        }
        if ($target === true) {
            return isset(static::$_matchers[$name]) ? static::$_matchers[$name] : [];
        }
        if ($target === '') {
            if (isset(static::$_matchers[$name][''])) {
                return static::$_matchers[$name][''];
            }
            throw new Exception("Unexisting default matcher attached to `'{$name}'`.");
        }
        if (isset(static::$_matchers[$name][$target])) {
            return static::$_matchers[$name][$target];
        } elseif (isset(static::$_matchers[$name][''])) {
            return static::$_matchers[$name][''];
        }
        throw new Exception("Unexisting matcher attached to `'{$name}'` for `{$target}`.");
    }
public static function get ( $ name = null , $ target = '' ) { if ( ! func_num_args ( ) ) { return static :: $ _matchers ; } if ( $ target === true ) { return isset ( static :: $ _matchers [ $ name ] ) ? static :: $ _matchers [ $ name ] : [ ] ; } if ( $ target === '' ) { if ( isset ( static :: $ _matchers [ $ name ] [ '' ] ) ) { return static :: $ _matchers [ $ name ] [ '' ] ; } throw new Exception ( "Unexisting default matcher attached to `'{$name}'`." ) ; } if ( isset ( static :: $ _matchers [ $ name ] [ $ target ] ) ) { return static :: $ _matchers [ $ name ] [ $ target ] ; } elseif ( isset ( static :: $ _matchers [ $ name ] [ '' ] ) ) { return static :: $ _matchers [ $ name ] [ '' ] ; } throw new Exception ( "Unexisting matcher attached to `'{$name}'` for `{$target}`." ) ; }
Returns registered matchers.

@param  string $name   The name of the matcher.
@param  string $target An optionnal target class name.

@return array          The registered matchers or a fully-namespaced class name if $name is not null.
@throws Exception
Returns registered matchers .