SpecificationFactory
in package
implements
SpecificationFactoryInterface
FinalYes
Factory class to build Specification used by FlyFinder when reading files to process.
Table of Contents
Interfaces
- SpecificationFactoryInterface
- Interface for Specifications used to filter the FileSystem.
Methods
- create() : SpecificationInterface
- Creates a SpecificationInterface object based on the ignore and extension parameters.
- createIgnoreSpecification() : CompositeSpecification
- A path without wildcards excludes that file, or that directory with everything in it. So does "<path>/**\/*", which a glob would only match below the directory, and without letting the finder skip the directory.
Methods
create()
Creates a SpecificationInterface object based on the ignore and extension parameters.
public
create(array<int, string|Path> $paths, Exclude $ignore, array<int, string> $extensions) : SpecificationInterface
Parameters
Return values
SpecificationInterfacecreateIgnoreSpecification()
A path without wildcards excludes that file, or that directory with everything in it. So does "<path>/**\/*", which a glob would only match below the directory, and without letting the finder skip the directory.
private
createIgnoreSpecification(string $path) : CompositeSpecification
Parameters
- $path : string