Documentation

Compare
in package

Comparison algorithms

Table of Contents

equal()  : callable
Method creates equal comparator
greater()  : callable
Method creates greater comparator
less()  : callable
Method creates less comparator
notEqual()  : callable
Method creates not equal comparator

Methods

equal()

Method creates equal comparator

public static equal(string $field, mixed $value) : callable
Parameters
$field : string

field name

$value : mixed

$value to be compared with

Return values
callable

greater()

Method creates greater comparator

public static greater(string $field, mixed $value) : callable
Parameters
$field : string

field name

$value : mixed

$value to be compared with

Return values
callable

less()

Method creates less comparator

public static less(string $field, mixed $value) : callable
Parameters
$field : string

field name

$value : mixed

$value to be compared with

Return values
callable

notEqual()

Method creates not equal comparator

public static notEqual(string $field, mixed $value) : callable
Parameters
$field : string

field name

$value : mixed

$value to be compared with

Return values
callable

Search results

    Яндекс.Метрика