\Horde\RefactorRegexp

Class for value objects representing a regular expression.

Summary

Methods
Properties
Constants
__construct()
__toString()
matches()
No public properties found
No constants found
No protected methods found
$_regexp
N/A
No private methods found
No private properties found
N/A

Properties

$_regexp

$_regexp : string

Regular expression string.

Type

string

Methods

__construct()

__construct(string  $regexp) 

Constructor.

Parameters

string $regexp

A regular expression.

__toString()

__toString() : string

Returns the string representation.

Returns

string —

String representation of this regular expression.

matches()

matches(string  $string) : boolean

Returns whether this a string matches this regular expression.

Parameters

string $string

A string to match against.

Returns

boolean —

True if the string matches.