PHP Class Liip\RMT\Version\Persister\TagValidator

Datei anzeigen Open project: liip/rmt Class Usage Examples

Public Methods

Method Description
__construct ( $regex, $tagPrefix = '' )
filtrateList ( array $tags ) : array Remove all invalid tags from a list
isValid ( string $tag ) : boolean Check if a tag is valid

Method Details

__construct() public method

public __construct ( $regex, $tagPrefix = '' )

filtrateList() public method

Remove all invalid tags from a list
public filtrateList ( array $tags ) : array
$tags array
return array

isValid() public method

Check if a tag is valid
public isValid ( string $tag ) : boolean
$tag string
return boolean