original_string: public function removeBehaviour(BehaviourAbstract $behaviour)
      {
          foreach ($this->behaviours as $key => $thisBehaviour) {
              if ($behaviour == $thisBehaviour) {
                  unset($this->behaviours[$key]);
              }
          }
      }
code: public function removeBehaviour(BehaviourAbstract $behaviour)
      {
          foreach ($this->behaviours as $key => $thisBehaviour) {
              if ($behaviour == $thisBehaviour) {
                  unset($this->behaviours[$key]);
              }
          }
      }
code_tokens: public function removeBehaviour ( BehaviourAbstract $ behaviour ) { foreach ( $ this -> behaviours as $ key => $ thisBehaviour ) { if ( $ behaviour == $ thisBehaviour ) { unset ( $ this -> behaviours [ $ key ] ) ; } } }
docstring: Removes a behaviour from the collection
  
  @param BehaviourAbstract $behaviour Behaviour to remove from the collection.
  
  @return void
docstring_tokens: Removes a behaviour from the collection