Свойство | Тип | Описание | |
---|---|---|---|
$data | string | String buffer | |
$filterId | string | Identifier of filter | |
$transformers | array | Go\Instrument\Transformer\SourceTransformer[] | List of transformers |
Метод | Описание | |
---|---|---|
addTransformer ( Go\Instrument\Transformer\SourceTransformer $transformer ) : void | Adds a SourceTransformer to be applied by this LoadTimeWeaver. | |
filter ( $in, $out, &$consumed, $closing ) | ||
getId ( ) : string | Returns the name of registered filter | |
register ( string $filterId = self::FILTER_IDENTIFIER ) | Register current loader as stream filter in PHP | |
transformCode ( |
Transforms source code by passing it through all transformers |
public static addTransformer ( Go\Instrument\Transformer\SourceTransformer $transformer ) : void | ||
$transformer | Go\Instrument\Transformer\SourceTransformer | SourceTransformer Transformer for source code |
Результат | void |
public static transformCode ( |
||
$metadata | Metadata from stream | |
Результат | void | boolean | Return false if transformation should be stopped |
protected static string $filterId | ||
Результат | string |
protected static array|SourceTransformer[],Go\Instrument\Transformer $transformers | ||
Результат | array | Go\Instrument\Transformer\SourceTransformer[] |