aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification/manager.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-09 17:04:40 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-13 22:41:14 +0200
commitfc34057f288c6b8c656a0ed1ac2cb5a86f86206d (patch)
treee1fead9c675d649708d7540c3d6e4bbf9d97abd2 /phpBB/phpbb/notification/manager.php
parentf29b12e35397ef4a4996ea7d212f0ab5a7a1dba6 (diff)
downloadforums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar
forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.gz
forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.bz2
forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.xz
forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.zip
[ticket/11444] Update tests and cleanup types/methods
PHPBB3-11444
Diffstat (limited to 'phpBB/phpbb/notification/manager.php')
-rw-r--r--phpBB/phpbb/notification/manager.php26
1 files changed, 17 insertions, 9 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index 9a8b671ef8..04259382ba 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -26,7 +26,7 @@ class manager
/** @var array */
protected $subscription_types;
- /** @var array */
+ /** @var method\method_interface[] */
protected $notification_methods;
/** @var ContainerInterface */
@@ -805,8 +805,10 @@ class manager
}
/**
- * Helper to get the list of methods enabled by default
- */
+ * Helper to get the list of methods enabled by default
+ *
+ * @return method\method_interface[]
+ */
public function get_default_methods()
{
$default_methods = array();
@@ -823,8 +825,10 @@ class manager
}
/**
- * Helper to get the notifications item type class and set it up
- */
+ * Helper to get the notifications item type class and set it up
+ *
+ * @return type\type_interface
+ */
public function get_item_type_class($notification_type_name, $data = array())
{
$item = $this->load_object($notification_type_name);
@@ -835,16 +839,20 @@ class manager
}
/**
- * Helper to get the notifications method class and set it up
- */
+ * Helper to get the notifications method class and set it up
+ *
+ * @return method\method_interface
+ */
public function get_method_class($method_name)
{
return $this->load_object($method_name);
}
/**
- * Helper to load objects (notification types/methods)
- */
+ * Helper to load objects (notification types/methods)
+ *
+ * @return method\method_interface|type\type_interface
+ */
protected function load_object($object_name)
{
$object = $this->phpbb_container->get($object_name);