original_string: public function casMember($member, $oldValue, $newValue)
      {
          $set = false;
  
          $this->lock();
          if ($this[$member] == $oldValue) {
              $this[$member] = $newValue;
  
              $set = true;
          }
          $this->unlock();
  
          return $set;
      }
code: public function casMember($member, $oldValue, $newValue)
      {
          $set = false;
  
          $this->lock();
          if ($this[$member] == $oldValue) {
              $this[$member] = $newValue;
  
              $set = true;
          }
          $this->unlock();
  
          return $set;
      }
code_tokens: public function casMember ( $ member , $ oldValue , $ newValue ) { $ set = false ; $ this -> lock ( ) ; if ( $ this [ $ member ] == $ oldValue ) { $ this [ $ member ] = $ newValue ; $ set = true ; } $ this -> unlock ( ) ; return $ set ; }
docstring: Performs a compare and swap operation on a class member
  
  @param string $member
  @param mixed $oldValue
  @param mixed $newValue
  @return bool
docstring_tokens: Performs a compare and swap operation on a class member