public function detectMessageType($object) { trigger_error('This method has been deprecated. Use detectType() on the Message object instead.', E_USER_DEPRECATED); }