ObjectHelpers
final class ObjectHelpers
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 27
static void
strictGet(string $class, string $name)
No description
at line 42
static void
strictSet(string $class, string $name)
No description
at line 57
static void
strictCall(string $class, string $method, array $additionalMethods = [])
No description
at line 90
static void
strictStaticCall(string $class, string $method)
No description
at line 123
static array
getMagicProperties(string $class)
internal |
Returns array of magic properties defined by annotation @property.
at line 170
static string|null
getSuggestion(array $possibilities, string $value)
internal |
Finds the best suggestion (for 8-bit encoding).
at line 208
static bool|string
hasProperty(string $class, string $name)
internal |
Checks if the public non-static property exists.
Traits
Static class.