Gui\Components\Object::__call PHP Method

__call() public method

The special method used to do the getters/setters for special properties
public __call ( string $method, array $params ) : self | mixed
$method string
$params array
return self | mixed
    public function __call($method, $params)
    {
        $type = substr($method, 0, 3);
        $rest = lcfirst(substr($method, 3));
        switch ($type) {
            case 'get':
                if (isset($this->runTimeProperties[$rest])) {
                    return $this->runTimeProperties[$rest];
                }
                break;
            case 'set':
                $this->runTimeProperties[$rest] = $params[0];
                return $this;
                break;
            default:
                # do nothing
                break;
        }
    }