public function setProperty($name, $value)
    {
        if (strstr($name, '.')) {
            $this->setPropertyByPath($name, $value);

            return true;
        }

        if ($this->isArray()) {
            $this->object[$name] = $value;
        } else {
            $this->object->$name = $value;
        }

        return true;
    }