Class shardimage\shardimagephpapi\base\BaseObject
Base object.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates the object, populates the properties and calls the "init" method. | shardimage\shardimagephpapi\base\BaseObject |
__get() | Returns the value of a non-defined property, it there is a getter method. | shardimage\shardimagephpapi\base\BaseObject |
__isset() | Does the non-defined property with a getter exist and is it not NULL? | shardimage\shardimagephpapi\base\BaseObject |
__set() | Sets the value of a non-defined property, if there is a setter method. | shardimage\shardimagephpapi\base\BaseObject |
__unset() | Sets the value of a non-defined property to NULL, if there is a setter. | shardimage\shardimagephpapi\base\BaseObject |
toArray() | Converts the object an array. | shardimage\shardimagephpapi\base\BaseObject |
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
Method Details
Creates the object, populates the properties and calls the "init" method.
public void __construct ( $config = [] ) | ||
$config | array | Predefined properties |
Returns the value of a non-defined property, it there is a getter method.
public mixed __get ( $name ) | ||
$name | string | Property |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidCallException | |
---|---|---|
throws | shardimage\shardimagephpapi\base\exceptions\UnknownPropertyException |
Does the non-defined property with a getter exist and is it not NULL?
public boolean __isset ( $name ) | ||
$name | string | Property |
Sets the value of a non-defined property, if there is a setter method.
public void __set ( $name, $value ) | ||
$name | string | Property |
$value | mixed | Value |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidCallException | |
---|---|---|
throws | shardimage\shardimagephpapi\base\exceptions\UnknownPropertyException |
Sets the value of a non-defined property to NULL, if there is a setter.
public void __unset ( $name ) | ||
$name | string | Property |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidCallException |
---|
Creates an object from the given parameters.
protected void ensureClass ( $name, $class ) | ||
$name | string | Name of the class property where the new object will be |
$class | string | Namespace of the class |
Custom initialization.
protected void init ( ) |
Converts the object an array.
public array toArray ( $excludeEmpty = false ) | ||
$excludeEmpty | boolean | Whether to remove empty element |