Documentation

InPath extends CompositeSpecification
in package

Files *and directories* meet the specification if they are in the given path.

Note this behavior is different than in Finder, in that directories can meet the spec, whereas Finder would never return a directory as "found".

Tags
psalm-immutable

Table of Contents

$path  : Path
__construct()  : mixed
Initializes the InPath specification
andSpecification()  : AndSpecification
Returns a specification that satisfies the original specification as well as the other specification
canBeSatisfiedBySomethingBelow()  : bool
Checks if anything under the directory path in value can possibly satisfy the specification.
isSatisfiedBy()  : bool
{@inheritDoc}
notSpecification()  : NotSpecification
Returns a specification that is the inverse of the original specification i.e. does not meet the original criteria
orSpecification()  : OrSpecification
Returns a specification that satisfies the original specification or the other specification
thatCanBeSatisfiedBySomethingBelow()  : bool
Provide default {@see canBeSatisfiedBySomethingBelow()} logic for specification classes that don't implement PrunableInterface
thatWillBeSatisfiedByEverythingBelow()  : bool
Provide default {@see willBeSatisfiedByEverythingBelow()} logic for specification classes that don't implement PrunableInterface
willBeSatisfiedByEverythingBelow()  : bool
Returns true if it is known or can be deduced that everything under the directory path in value will certainly satisfy the specification.

Properties

Methods

__construct()

Initializes the InPath specification

public __construct(Path $path) : mixed
Parameters
$path : Path
Return values
mixed

canBeSatisfiedBySomethingBelow()

Checks if anything under the directory path in value can possibly satisfy the specification.

public canBeSatisfiedBySomethingBelow(array<string|int, mixed> $value) : bool
Parameters
$value : array<string|int, mixed>
Tags
inheritDoc
Return values
bool

isSatisfiedBy()

{@inheritDoc}

public isSatisfiedBy(array<string|int, mixed> $value) : bool
Parameters
$value : array<string|int, mixed>
Return values
bool

thatCanBeSatisfiedBySomethingBelow()

Provide default {@see canBeSatisfiedBySomethingBelow()} logic for specification classes that don't implement PrunableInterface

public static thatCanBeSatisfiedBySomethingBelow(SpecificationInterface $that, array<string|int, mixed> $value) : bool
Parameters
$that : SpecificationInterface
$value : array<string|int, mixed>
Tags
psalm-param

array{basename: string, path: string, stream: resource, dirname: string, type: string, extension: string} $value

psalm-mutation-free
Return values
bool

thatWillBeSatisfiedByEverythingBelow()

Provide default {@see willBeSatisfiedByEverythingBelow()} logic for specification classes that don't implement PrunableInterface

public static thatWillBeSatisfiedByEverythingBelow(SpecificationInterface $that, array<string|int, mixed> $value) : bool
Parameters
$that : SpecificationInterface
$value : array<string|int, mixed>
Tags
psalm-param

array{basename: string, path: string, stream: resource, dirname: string, type: string, extension: string} $value

psalm-mutation-free
Return values
bool

willBeSatisfiedByEverythingBelow()

Returns true if it is known or can be deduced that everything under the directory path in value will certainly satisfy the specification.

public willBeSatisfiedByEverythingBelow(array<string|int, mixed> $value) : bool
Parameters
$value : array<string|int, mixed>
Tags
inheritDoc
Return values
bool

Search results