public function removeBehaviour(BehaviourAbstract $behaviour)
    {
        foreach ($this->behaviours as $key => $thisBehaviour) {
            if ($behaviour == $thisBehaviour) {
                unset($this->behaviours[$key]);
            }
        }
    }
public function removeBehaviour(BehaviourAbstract $behaviour)
    {
        foreach ($this->behaviours as $key => $thisBehaviour) {
            if ($behaviour == $thisBehaviour) {
                unset($this->behaviours[$key]);
            }
        }
    }
public function removeBehaviour ( BehaviourAbstract $ behaviour ) { foreach ( $ this -> behaviours as $ key => $ thisBehaviour ) { if ( $ behaviour == $ thisBehaviour ) { unset ( $ this -> behaviours [ $ key ] ) ; } } }
Removes a behaviour from the collection

@param BehaviourAbstract $behaviour Behaviour to remove from the collection.

@return void
Removes a behaviour from the collection