src/SyHolloway/MrColor/Extension/Toolkit.php
public function sync(Color $firstcolor, Color $secondcolor)
    {
        foreach ($this->colorprops as $name) {
            $firstcolor->$name = $secondcolor->$name;
        }

        return $firstcolor;
    }
public function sync(Color $firstcolor, Color $secondcolor)
    {
        foreach ($this->colorprops as $name) {
            $firstcolor->$name = $secondcolor->$name;
        }

        return $firstcolor;
    }
public function sync ( Color $ firstcolor , Color $ secondcolor ) { foreach ( $ this -> colorprops as $ name ) { $ firstcolor -> $ name = $ secondcolor -> $ name ; } return $ firstcolor ; }
Sync first color with second color

The first color will receive all property values from the second color

@param  object $firstcolor  first Color object to receive the values
@param  object $secondcolor second Color object to give the values
@return object self
Sync first color with second color