final class ObjectHelpers

Nette\SmartObject helpers.

Methods

static 
strictGet($class, $name)

No description

static 
strictSet($class, $name)

No description

static 
strictCall($class, $method, $additionalMethods = [])

No description

static 
strictStaticCall($class, $method)

No description

static array
getMagicProperties($class)

Returns array of magic properties defined by annotation @property.

static 
getSuggestion(array $possibilities, $value)

Finds the best suggestion (for 8-bit encoding).

static bool|string
hasProperty($class, $name)

Checks if the public non-static property exists.

Details

at line 24
static strictGet($class, $name)

No description

Parameters

$class
$name

Exceptions

MemberAccessException

at line 38
static strictSet($class, $name)

No description

Parameters

$class
$name

Exceptions

MemberAccessException

at line 52
static strictCall($class, $method, $additionalMethods = [])

No description

Parameters

$class
$method
$additionalMethods

Exceptions

MemberAccessException

at line 70
static strictStaticCall($class, $method)

No description

Parameters

$class
$method

Exceptions

MemberAccessException

at line 85
static array getMagicProperties($class)

internal  
 

Returns array of magic properties defined by annotation @property.

Parameters

$class

Return Value

array

of [name => bit mask]

at line 130
static getSuggestion(array $possibilities, $value)

internal  
 

Finds the best suggestion (for 8-bit encoding).

Parameters

array $possibilities
$value

at line 168
static bool|string hasProperty($class, $name)

internal  
 

Checks if the public non-static property exists.

Parameters

$class
$name

Return Value

bool|string

returns 'event' if the property exists and has event like name

Traits

Static class.