version_support extends facade
Facade for local_middag\framework\support\moodle\version_support.
Tags
Table of Contents
Methods
- assert_min() : void
- at_least() : bool
- between() : bool
- branch() : int
- build() : int
- compare() : bool
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- major_minor() : array<string|int, mixed>
- supports() : bool
- version_semver() : string
Methods
assert_min()
public
static assert_min(string $min[, string|null $msg = = 'null' ]) : void
Parameters
- $min : string
- $msg : string|null = = 'null'
at_least()
public
static at_least(string $min) : bool
Parameters
- $min : string
Return values
boolbetween()
public
static between(string $min, string $max) : bool
Parameters
- $min : string
- $max : string
Return values
boolbranch()
public
static branch() : int
Return values
intbuild()
public
static build() : int
Return values
intcompare()
public
static compare(string $operator, string $constraint) : bool
Parameters
- $operator : string
- $constraint : string
Return values
boolget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringmajor_minor()
public
static major_minor() : array<string|int, mixed>
Return values
array<string|int, mixed>supports()
public
static supports(string $feature, array<string|int, mixed> $matrix) : bool
Parameters
- $feature : string
- $matrix : array<string|int, mixed>
Return values
boolversion_semver()
public
static version_semver() : string