original_string: protected function getPrimaryAttribute($attribute)
      {
          foreach ($this->implicitAttributes as $unparsed => $parsed) {
              if (in_array($attribute, $parsed)) {
                  return $unparsed;
              }
          }
  
          return $attribute;
      }
code: protected function getPrimaryAttribute($attribute)
      {
          foreach ($this->implicitAttributes as $unparsed => $parsed) {
              if (in_array($attribute, $parsed)) {
                  return $unparsed;
              }
          }
  
          return $attribute;
      }
code_tokens: protected function getPrimaryAttribute ( $ attribute ) { foreach ( $ this -> implicitAttributes as $ unparsed => $ parsed ) { if ( in_array ( $ attribute , $ parsed ) ) { return $ unparsed ; } } return $ attribute ; }
docstring: Get the primary attribute name.
  
  For example, if "name.0" is given, "name.*" will be returned.
  
  @param  string  $attribute
  @return string
docstring_tokens: Get the primary attribute name .