Skip to content

Commit df71d16

Browse files
committed
Added isSnapshot().
1 parent daa7699 commit df71d16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/VersionParser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ public function isReleaseCandidate() : bool
276276
{
277277
return $this->getTagType() === self::TAG_TYPE_RELEASE_CANDIDATE;
278278
}
279+
280+
public function isSnapshot() : bool
281+
{
282+
return $this->getTagType() === self::TAG_TYPE_SNAPSHOT;
283+
}
279284

280285
/**
281286
* Whether a branch name is present in the version.

0 commit comments

Comments
 (0)