src/SyHolloway/MrColor/Color.php
public function update($using = 'hex', $value = false)
    {
        if ('hex' == $using || 'alpha' == $using) {
            $this->$using = $value;
        }
        
        $this->hex = $this->formats->update($using, $value, $this->hex);
        
        return $this;
    }
public function update($using = 'hex', $value = false)
    {
        if ('hex' == $using || 'alpha' == $using) {
            $this->$using = $value;
        }
        
        $this->hex = $this->formats->update($using, $value, $this->hex);
        
        return $this;
    }
public function update ( $ using = 'hex' , $ value = false ) { if ( 'hex' == $ using || 'alpha' == $ using ) { $ this -> $ using = $ value ; } $ this -> hex = $ this -> formats -> update ( $ using , $ value , $ this -> hex ) ; return $ this ; }
Updates the object with a value

The property to update is set with the $using var
the new value of the property specified is set with the $value var
this method syncs all color properties based on the values passed

@param string $using
@param string $value
@return object self
Updates the object with a value