public function addSelection(Selection $selection)
    {
        if (!$this->selections->contains($selection)) {
            $this->selections->add($selection);
            $selection->setInteractionSelection($this);
        }
    }
public function addSelection(Selection $selection)
    {
        if (!$this->selections->contains($selection)) {
            $this->selections->add($selection);
            $selection->setInteractionSelection($this);
        }
    }
public function addSelection ( Selection $ selection ) { if ( ! $ this -> selections -> contains ( $ selection ) ) { $ this -> selections -> add ( $ selection ) ; $ selection -> setInteractionSelection ( $ this ) ; } }
Adds a selection.

@param Selection $selection
Adds a selection .