public function onMessages($pattern, $callback, $priority = 0)
    {
        return $this
            ->onChannel($pattern, $callback, $priority)
            ->onPrivateMessage($pattern, $callback, $priority)
        ;
    }
public function onMessages($pattern, $callback, $priority = 0)
    {
        return $this
            ->onChannel($pattern, $callback, $priority)
            ->onPrivateMessage($pattern, $callback, $priority)
        ;
    }
public function onMessages ( $ pattern , $ callback , $ priority = 0 ) { return $ this -> onChannel ( $ pattern , $ callback , $ priority ) -> onPrivateMessage ( $ pattern , $ callback , $ priority ) ; }
Adds event handlers to the list for both channel messages and private messages.

@param string   $pattern  The RegEx to test the message against
@param callable $callback The callback to run if the pattern matches
@param integer  $priority The priority of this event handler

@return \Philip\Philip
Adds event handlers to the list for both channel messages and private messages .