original_string: public function fetchLastMessages($number = 1)
      {
          $messages = $this->fetchMessages();
  
          $firstIndex = count($messages) - $number;
  
          $messages = array_slice($messages, $firstIndex, $number);
  
          $this->assertCount($number, $messages);
  
          return $messages;
      }
code: public function fetchLastMessages($number = 1)
      {
          $messages = $this->fetchMessages();
  
          $firstIndex = count($messages) - $number;
  
          $messages = array_slice($messages, $firstIndex, $number);
  
          $this->assertCount($number, $messages);
  
          return $messages;
      }
code_tokens: public function fetchLastMessages ( $ number = 1 ) { $ messages = $ this -> fetchMessages ( ) ; $ firstIndex = count ( $ messages ) - $ number ; $ messages = array_slice ( $ messages , $ firstIndex , $ number ) ; $ this -> assertCount ( $ number , $ messages ) ; return $ messages ; }
docstring: Get the most recent messages of the default inbox.
  
  @param int $number
  
  @return array
docstring_tokens: Get the most recent messages of the default inbox .