adds namespace declarations to files

This commit is contained in:
Tristan 2025-01-09 15:33:45 +01:00
parent edd8a7eb70
commit 9dad5a4aa7
8 changed files with 15 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Thedevstack\\PhpXmpp\\": "src/" "thedevstack\\phpxmpp\\": "src/"
} }
}, },
"authors": [ "authors": [

Binary file not shown.

View file

@ -37,5 +37,7 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class XMPPException extends \Exception { class XMPPException extends \Exception {
} }

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class Roster { class Roster {
/** /**
* Roster array, handles contacts and presence. Indexed by jid. * Roster array, handles contacts and presence. Indexed by jid.

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class XMLObj { class XMLObj {
/** /**
* Tag name * Tag name

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class XMLStream { class XMLStream {
/** /**
* @var resource * @var resource

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class XMPP extends XMLStream { class XMPP extends XMLStream {
/** /**
* @var string * @var string

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz * @copyright 2008 Nathanael C. Fritz
* @version $Id$ * @version $Id$
*/ */
namespace thedevstack\phpxmpp;
class XMPPLog { class XMPPLog {
const LEVEL_ERROR = 0; const LEVEL_ERROR = 0;