PHP Class Relax\Greppy\FluentPattern

Author: Daniel Ribeiro ([email protected])
Inheritance: implements Relax\Greppy\Pattern
Show file Open project: relaxphp/greppy

Protected Properties

Property Type Description
$pattern string
$subject string

Public Methods

Method Description
__toString ( )
any ( ) : Relax\Greppy\Pattern
digit ( ) : Relax\Greppy\Pattern
literal ( ) : Relax\Greppy\Pattern
range ( integer | string $from, integer | string $to ) : Relax\Greppy\Pattern
repetition ( string $character, integer $min, integer $max = null ) : Relax\Greppy\Pattern

Method Details

__toString() public method

public __toString ( )

any() public method

public any ( ) : Relax\Greppy\Pattern
return Relax\Greppy\Pattern

digit() public method

public digit ( ) : Relax\Greppy\Pattern
return Relax\Greppy\Pattern

literal() public method

public literal ( ) : Relax\Greppy\Pattern
return Relax\Greppy\Pattern

range() public method

public range ( integer | string $from, integer | string $to ) : Relax\Greppy\Pattern
$from integer | string
$to integer | string
return Relax\Greppy\Pattern

repetition() public method

public repetition ( string $character, integer $min, integer $max = null ) : Relax\Greppy\Pattern
$character string
$min integer
$max integer
return Relax\Greppy\Pattern

Property Details

$pattern protected property

protected string $pattern
return string

$subject protected property

protected string $subject
return string