original_string: public function pop($type): ?\stdClass
      {
          $text = array_shift($this->getMessagesStore()[$type]);
          if ($text) {
              $message = new \stdClass();
              $message->text = $text;
              $message->type = $type;
              return $message;
          }
          return null;
      }
code: public function pop($type): ?\stdClass
      {
          $text = array_shift($this->getMessagesStore()[$type]);
          if ($text) {
              $message = new \stdClass();
              $message->text = $text;
              $message->type = $type;
              return $message;
          }
          return null;
      }
code_tokens: public function pop ( $ type ) : ? \ stdClass { $ text = array_shift ( $ this -> getMessagesStore ( ) [ $ type ] ) ; if ( $ text ) { $ message = new \ stdClass ( ) ; $ message -> text = $ text ; $ message -> type = $ type ; return $ message ; } return null ; }
docstring: Pop a message by type
  
  @param  string $type
  
  @return \stdClass|null
docstring_tokens: Pop a message by type