public function addColor(Color $color)
    {
        if (!$this->colors->contains($color)) {
            $this->colors->add($color);
            $color->setInteractionSelection($this);
        }
    }
public function addColor(Color $color)
    {
        if (!$this->colors->contains($color)) {
            $this->colors->add($color);
            $color->setInteractionSelection($this);
        }
    }
public function addColor ( Color $ color ) { if ( ! $ this -> colors -> contains ( $ color ) ) { $ this -> colors -> add ( $ color ) ; $ color -> setInteractionSelection ( $ this ) ; } }
Adds a color.

@param Color $color
Adds a color .