Go\Instrument\ClassLoading\SourceTransformingLoader::getId PHP Method

getId() public static method

Returns the name of registered filter
public static getId ( ) : string
return string
    public static function getId()
    {
        if (empty(self::$filterId)) {
            throw new \RuntimeException('Stream filter was not registered');
        }
        return self::$filterId;
    }

Usage Example

Beispiel #1
0
 protected function registerTransformers()
 {
     $sourceTransformers = array(new FilterInjectorTransformer($this->options, SourceTransformingLoader::getId()), new BeforeMockTransformer($this, new TokenReflection\Broker(new TokenReflection\Broker\Backend\Memory()), $this->container->get('aspect.advice_matcher')));
     return array(new CachingTransformer($this, $sourceTransformers));
 }
All Usage Examples Of Go\Instrument\ClassLoading\SourceTransformingLoader::getId