W3cubDocs

/Symfony 2.8

Symfony\Component\Finder\Expression\Expression

class Expression implements ValueInterface

Constants

TYPE_REGEX
TYPE_GLOB

Methods

static Expression create(string $expr)
__construct(string $expr)
string __toString()
string render()

Renders string representation of expression.

string renderPattern()

Renders string representation of pattern.

bool isCaseSensitive()
int getType()
ValueInterface prepend(string $expr)
ValueInterface append(string $expr)
bool isRegex()
bool isGlob()
Glob getGlob()
Regex getRegex()

Details

static public Expression create(string $expr)

Parameters

string $expr

Return Value

Expression

public __construct(string $expr)

Parameters

string $expr

public string __toString()

Return Value

string

public string render()

Renders string representation of expression.

Return Value

string

public string renderPattern()

Renders string representation of pattern.

Return Value

string

public bool isCaseSensitive()

Return Value

bool

public int getType()

Return Value

int

public ValueInterface prepend(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public ValueInterface append(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public bool isRegex()

Return Value

bool

public bool isGlob()

Return Value

bool

public Glob getGlob()

Return Value

Glob

Exceptions

LogicException

public Regex getRegex()

Return Value

Regex

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Expression/Expression.html