public function fetchLastMessages($number = 1)
    {
        $messages = $this->fetchMessages();

        $firstIndex = count($messages) - $number;

        $messages = array_slice($messages, $firstIndex, $number);

        $this->assertCount($number, $messages);

        return $messages;
    }
public function fetchLastMessages($number = 1)
    {
        $messages = $this->fetchMessages();

        $firstIndex = count($messages) - $number;

        $messages = array_slice($messages, $firstIndex, $number);

        $this->assertCount($number, $messages);

        return $messages;
    }
public function fetchLastMessages ( $ number = 1 ) { $ messages = $ this -> fetchMessages ( ) ; $ firstIndex = count ( $ messages ) - $ number ; $ messages = array_slice ( $ messages , $ firstIndex , $ number ) ; $ this -> assertCount ( $ number , $ messages ) ; return $ messages ; }
Get the most recent messages of the default inbox.

@param int $number

@return array
Get the most recent messages of the default inbox .