PHP Class Liip\RMT\Version\Persister\TagValidator

ファイルを表示 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