PHP 클래스 Bolt\Version

저자: Carson Full ([email protected])
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
compare ( string $version, string $operator ) : boolean Compares a version to Bolt's version.
forComposer ( ) : string Returns a version formatted for composer.
isStable ( ) : boolean Whether this release is a stable one.
name ( ) : string | null

비공개 메소드들

메소드 설명
__construct ( ) Must not be instantiated.

메소드 상세

compare() 공개 정적인 메소드

Compares a version to Bolt's version.
public static compare ( string $version, string $operator ) : boolean
$version string The version to compare.
$operator string The comparison operator: <, <=, >, >=, ==, !=
리턴 boolean Whether the comparison succeeded.

forComposer() 공개 정적인 메소드

Returns a version formatted for composer.
public static forComposer ( ) : string
리턴 string

isStable() 공개 정적인 메소드

Whether this release is a stable one.
public static isStable ( ) : boolean
리턴 boolean

name() 공개 정적인 메소드

사용 중단: since 3.0, to be removed in 4.0.
public static name ( ) : string | null
리턴 string | null