src/Plugin/Stub.php
public static function on($reference)
    {
        $hash = Suite::hash($reference);
        if (isset(static::$_registered[$hash])) {
            return static::$_registered[$hash];
        }
        return static::$_registered[$hash] = new static($reference);
    }
public static function on($reference)
    {
        $hash = Suite::hash($reference);
        if (isset(static::$_registered[$hash])) {
            return static::$_registered[$hash];
        }
        return static::$_registered[$hash] = new static($reference);
    }
public static function on ( $ reference ) { $ hash = Suite :: hash ( $ reference ) ; if ( isset ( static :: $ _registered [ $ hash ] ) ) { return static :: $ _registered [ $ hash ] ; } return static :: $ _registered [ $ hash ] = new static ( $ reference ) ; }
Stubs class methods.

@param  object|string $reference An instance or a fully-namespaced class name.
@return self                     The Stub instance.
Stubs class methods .