original_string: private function checkValue($value, $values, $reason)
      {
  
          $ok = in_array($value, $values);
          if (!$ok && !empty($reason)) {
              $this->reason = sprintf($reason, $value);
          }
  
          return $ok;
  
      }
code: private function checkValue($value, $values, $reason)
      {
  
          $ok = in_array($value, $values);
          if (!$ok && !empty($reason)) {
              $this->reason = sprintf($reason, $value);
          }
  
          return $ok;
  
      }
code_tokens: private function checkValue ( $ value , $ values , $ reason ) { $ ok = in_array ( $ value , $ values ) ; if ( ! $ ok && ! empty ( $ reason ) ) { $ this -> reason = sprintf ( $ reason , $ value ) ; } return $ ok ; }
docstring: Validate a parameter value from an array of permitted values.
  
  @return boolean True if value is valid
docstring_tokens: Validate a parameter value from an array of permitted values .