PHP Класс YaLinqo\Functions

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$blank Blank function: does nothing.
$compareInt callable Compare int function: returns the difference between the first and the second argument.
$compareIntReversed callable Compare int function reversed: returns the difference between the second and the first argument.
$compareLoose callable Compare loose function: returns -1, 0 or 1 based on == and > operators.
$compareLooseReversed callable Compare loose function reversed: returns 1, 0 or -1 based on == and > operators.
$compareStrict callable Compare strict function: returns -1, 0 or 1 based on === and > operators.
$compareStrictReversed callable Compare strict function reversed: returns 1, 0 or -1 based on === and > operators.
$false False function: returns false.
$identity Identity function: returns the only argument.
$key Key function: returns the second argument of two.
$true True function: returns true.
$value Value function: returns the first argument of two.

Открытые методы

Метод Описание
increment ( ) : callable Increment function: returns incremental integers starting from 0.
init ( )

Описание методов

increment() публичный статический Метод

Increment function: returns incremental integers starting from 0.
public static increment ( ) : callable
Результат callable

init() публичный статический Метод

public static init ( )

Описание свойств

$blank публичное статическое свойство

Blank function: does nothing.
public static $blank

$compareInt публичное статическое свойство

Compare int function: returns the difference between the first and the second argument.
public static callable $compareInt
Результат callable

$compareIntReversed публичное статическое свойство

Compare int function reversed: returns the difference between the second and the first argument.
public static callable $compareIntReversed
Результат callable

$compareLoose публичное статическое свойство

Compare loose function: returns -1, 0 or 1 based on == and > operators.
public static callable $compareLoose
Результат callable

$compareLooseReversed публичное статическое свойство

Compare loose function reversed: returns 1, 0 or -1 based on == and > operators.
public static callable $compareLooseReversed
Результат callable

$compareStrict публичное статическое свойство

Compare strict function: returns -1, 0 or 1 based on === and > operators.
public static callable $compareStrict
Результат callable

$compareStrictReversed публичное статическое свойство

Compare strict function reversed: returns 1, 0 or -1 based on === and > operators.
public static callable $compareStrictReversed
Результат callable

$false публичное статическое свойство

False function: returns false.
public static $false

$identity публичное статическое свойство

Identity function: returns the only argument.
public static $identity

$key публичное статическое свойство

Key function: returns the second argument of two.
public static $key

$true публичное статическое свойство

True function: returns true.
public static $true

$value публичное статическое свойство

Value function: returns the first argument of two.
public static $value