src/GetSetTrait.php
private function updateAttribute($attribute, $value)
    {
        if (property_exists($this, $attribute)) {
            $this->$attribute = $value;
        }

        return $this;
    }
private function updateAttribute($attribute, $value)
    {
        if (property_exists($this, $attribute)) {
            $this->$attribute = $value;
        }

        return $this;
    }
private function updateAttribute ( $ attribute , $ value ) { if ( property_exists ( $ this , $ attribute ) ) { $ this -> $ attribute = $ value ; } return $ this ; }
Updates a specific attribute of the current object.

@param    string                   $attribute
@param    string|boolean|integer   $value

@return   object
Updates a specific attribute of the current object .