PHP Class YaLinqo\Functions

显示文件 Open project: athari/yalinqo Class Usage Examples

Public Properties

Property Type Description
$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.

Public Methods

Method Description
increment ( ) : callable Increment function: returns incremental integers starting from 0.
init ( )

Method Details

increment() public static method

Increment function: returns incremental integers starting from 0.
public static increment ( ) : callable
return callable

init() public static method

public static init ( )

Property Details

$blank public_oe static_oe property

Blank function: does nothing.
public static $blank

$compareInt public_oe static_oe property

Compare int function: returns the difference between the first and the second argument.
public static callable $compareInt
return callable

$compareIntReversed public_oe static_oe property

Compare int function reversed: returns the difference between the second and the first argument.
public static callable $compareIntReversed
return callable

$compareLoose public_oe static_oe property

Compare loose function: returns -1, 0 or 1 based on == and > operators.
public static callable $compareLoose
return callable

$compareLooseReversed public_oe static_oe property

Compare loose function reversed: returns 1, 0 or -1 based on == and > operators.
public static callable $compareLooseReversed
return callable

$compareStrict public_oe static_oe property

Compare strict function: returns -1, 0 or 1 based on === and > operators.
public static callable $compareStrict
return callable

$compareStrictReversed public_oe static_oe property

Compare strict function reversed: returns 1, 0 or -1 based on === and > operators.
public static callable $compareStrictReversed
return callable

$false public_oe static_oe property

False function: returns false.
public static $false

$identity public_oe static_oe property

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

$key public_oe static_oe property

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

$true public_oe static_oe property

True function: returns true.
public static $true

$value public_oe static_oe property

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