src/Data/FormatAbleObject.php
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;
    }
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;
    }
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 ; }
Set Property.

@param string $name
@param mixed  $value

@return bool
Set Property .