PHP Class Go\Instrument\Transformer\CachingTransformer

Inheritance: extends BaseSourceTransformer
Afficher le fichier Open project: goaop/framework

Protected Properties

Свойство 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[]

Méthodes publiques

Méthode 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

Méthode Description
processTransformers ( StreamMetaData $metadata ) : boolean Iterates over transformers

Method Details

__construct() public méthode

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 méthode

This method may transform the supplied source and return a new replacement for it
public transform ( StreamMetaData $metadata ) : boolean
$metadata StreamMetaData Metadata for source
Résultat 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
Résultat integer | null

$cacheManager protected_oe property

protected CachePathManager,Go\Instrument\ClassLoading|null $cacheManager
Résultat Go\Instrument\ClassLoading\CachePathManager | null

$transformers protected_oe property

protected array|callable|SourceTransformer[],Go\Instrument\Transformer $transformers
Résultat array | callable | Go\Instrument\Transformer\SourceTransformer[]