PHP Class Liip\RMT\Version\Persister\TagValidator

Afficher le fichier Open project: liip/rmt Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

filtrateList() public méthode

Remove all invalid tags from a list
public filtrateList ( array $tags ) : array
$tags array
Résultat array

isValid() public méthode

Check if a tag is valid
public isValid ( string $tag ) : boolean
$tag string
Résultat boolean