final class ObjectHelpers

internal  
 

Nette\SmartObject helpers.

Methods

static void
strictGet(string $class, string $name)

No description

static void
strictSet(string $class, string $name)

No description

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

No description

static void
strictStaticCall(string $class, string $method)

No description

static array
getMagicProperties(string $class)

Returns array of magic properties defined by annotation @property.

static string|null
getSuggestion(array $possibilities, string $value)

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

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

Checks if the public non-static property exists.

Details

at line 28
static void strictGet(string $class, string $name)

No description

Parameters

string $class
string $name

Return Value

void

Exceptions

MemberAccessException

at line 43
static void strictSet(string $class, string $name)

No description

Parameters

string $class
string $name

Return Value

void

Exceptions

MemberAccessException

at line 58
static void strictCall(string $class, string $method, array $additionalMethods = [])

No description

Parameters

string $class
string $method
array $additionalMethods

Return Value

void

Exceptions

MemberAccessException

at line 91
static void strictStaticCall(string $class, string $method)

No description

Parameters

string $class
string $method

Return Value

void

Exceptions

MemberAccessException

at line 124
static array getMagicProperties(string $class)

internal  
 

Returns array of magic properties defined by annotation @property.

Parameters

string $class

Return Value

array

of [name => bit mask]

at line 172
static string|null getSuggestion(array $possibilities, string $value)

internal  
 

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

Parameters

array $possibilities
string $value

Return Value

string|null

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

internal  
 

Checks if the public non-static property exists.

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

Parameters

string $class
string $name

Return Value

bool|string

Traits

Static class.