original_string: public function firstOfType($value, $status = 'ACTIVE')
      {
          foreach ($this->data->user_identifier as $identifier) {
              if ($identifier->id_type->value == $value && (is_null($status) || $identifier->status == $status)) {
                  return $identifier->value;
              }
          }
      }
code: public function firstOfType($value, $status = 'ACTIVE')
      {
          foreach ($this->data->user_identifier as $identifier) {
              if ($identifier->id_type->value == $value && (is_null($status) || $identifier->status == $status)) {
                  return $identifier->value;
              }
          }
      }
code_tokens: public function firstOfType ( $ value , $ status = 'ACTIVE' ) { foreach ( $ this -> data -> user_identifier as $ identifier ) { if ( $ identifier -> id_type -> value == $ value && ( is_null ( $ status ) || $ identifier -> status == $ status ) ) { return $ identifier -> value ; } } }
docstring: Get the first active user identifier of a given type, like 'BARCODE' or 'UNIV_ID'.
  
  @param string $value
  @param string $status
  
  @return null|string
docstring_tokens: Get the first active user identifier of a given type like BARCODE or UNIV_ID .