public function messages()
	{
		$messages = $this->_messages;

		// sort messages by their timestamp
		usort($messages, function($a, $b)
		{
			if ($a['time'] === $b['time'])
			{
				return 0;
			}
			return $a['time'] < $b['time'] ? -1 : 1;
		});

		return $messages;
	}
public function messages()
	{
		$messages = $this->_messages;

		// sort messages by their timestamp
		usort($messages, function($a, $b)
		{
			if ($a['time'] === $b['time'])
			{
				return 0;
			}
			return $a['time'] < $b['time'] ? -1 : 1;
		});

		return $messages;
	}
public function messages ( ) { $ messages = $ this -> _messages ; // sort messages by their timestamp usort ( $ messages , function ( $ a , $ b ) { if ( $ a [ 'time' ] === $ b [ 'time' ] ) { return 0 ; } return $ a [ 'time' ] < $ b [ 'time' ] ? - 1 : 1 ; } ) ; return $ messages ; }
Get a list of messages

@return  array
Get a list of messages