PHP Class Go\Instrument\Transformer\CachingTransformer

Inheritance: extends BaseSourceTransformer
Datei anzeigen Open project: goaop/framework

Protected Properties

Property Type Description
$cacheFileMode integer | null By default, permissions are affected by the umask system setting
$cacheManager Go\Instrument\ClassLoading\CachePathManager | null
$transformers array | callable | Go\Instrument\Transformer\SourceTransformer[]

Public Methods

Method Description
__construct ( AspectKernel $kernel, array | callable $transformers, CachePathManager $cacheManager ) Class constructor
transform ( StreamMetaData $metadata ) : boolean This method may transform the supplied source and return a new replacement for it

Private Methods

Method Description
processTransformers ( StreamMetaData $metadata ) : boolean Iterates over transformers

Method Details

__construct() public method

Class constructor
public __construct ( AspectKernel $kernel, array | callable $transformers, CachePathManager $cacheManager )
$kernel Go\Core\AspectKernel Instance of aspect kernel
$transformers array | callable Source transformers or callable that should return transformers
$cacheManager Go\Instrument\ClassLoading\CachePathManager Cache manager

transform() public method

This method may transform the supplied source and return a new replacement for it
public transform ( StreamMetaData $metadata ) : boolean
$metadata StreamMetaData Metadata for source
return boolean Return false if transformation should be stopped

Property Details

$cacheFileMode protected_oe property

By default, permissions are affected by the umask system setting
protected int|null $cacheFileMode
return integer | null

$cacheManager protected_oe property

protected CachePathManager,Go\Instrument\ClassLoading|null $cacheManager
return Go\Instrument\ClassLoading\CachePathManager | null

$transformers protected_oe property

protected array|callable|SourceTransformer[],Go\Instrument\Transformer $transformers
return array | callable | Go\Instrument\Transformer\SourceTransformer[]