Documentation

VersionComparisonOperator
in package

FinalYes
Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

psalm-immutable

Table of Contents

Properties

$operator  : string

Methods

__construct()  : mixed
asString()  : string
ensureOperatorIsValid()  : void

Properties

$operator read-only

private string $operator
Tags
psalm-var

'<'|'lt'|'<='|'le'|'>'|'gt'|'>='|'ge'|'=='|'='|'eq'|'!='|'<>'|'ne'

Methods

__construct()

public __construct(string $operator) : mixed
Parameters
$operator : string
Tags
psalm-param

'<'|'lt'|'<='|'le'|'>'|'gt'|'>='|'ge'|'=='|'='|'eq'|'!='|'<>'|'ne' $operator

throws
InvalidVersionOperatorException

asString()

public asString() : string
Tags
psalm-return

'<'|'lt'|'<='|'le'|'>'|'gt'|'>='|'ge'|'=='|'='|'eq'|'!='|'<>'|'ne'

Return values
string

ensureOperatorIsValid()

private ensureOperatorIsValid(string $operator) : void
Parameters
$operator : string
Tags
psalm-param

'<'|'lt'|'<='|'le'|'>'|'gt'|'>='|'ge'|'=='|'='|'eq'|'!='|'<>'|'ne' $operator

throws
InvalidVersionOperatorException

        
On this page

Search results