diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
commit | eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch) | |
tree | 511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Subscriber/Base.php | |
parent | 65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff) |
Helpers refactoring
Diffstat (limited to 'app/Subscriber/Base.php')
-rw-r--r-- | app/Subscriber/Base.php | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/app/Subscriber/Base.php b/app/Subscriber/Base.php deleted file mode 100644 index 10040626..00000000 --- a/app/Subscriber/Base.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php - -namespace Subscriber; - -use Pimple\Container; - -/** - * Base subscriber class - * - * @package subscriber - * @author Frederic Guillot - * - * @property \Integration\SlackWebhook $slackWebhook - * @property \Integration\HipchatWebhook $hipchatWebhook - * @property \Model\Board $board - * @property \Model\Config $config - * @property \Model\Comment $comment - * @property \Model\LastLogin $lastLogin - * @property \Model\Notification $notification - * @property \Model\Project $project - * @property \Model\ProjectPermission $projectPermission - * @property \Model\ProjectActivity $projectActivity - * @property \Model\ProjectAnalytic $projectAnalytic - * @property \Model\ProjectDailySummary $projectDailySummary - * @property \Model\Subtask $subtask - * @property \Model\Task $task - * @property \Model\TaskDuplication $taskDuplication - * @property \Model\TaskExport $taskExport - * @property \Model\TaskFinder $taskFinder - * @property \Model\SubtaskTimeTracking $subtaskTimeTracking - * @property \Model\UserSession $userSession - * @property \Model\Webhook $webhook - */ -abstract class Base -{ - /** - * Container instance - * - * @access protected - * @var \Pimple\Container - */ - protected $container; - - /** - * Constructor - * - * @access public - * @param \Pimple\Container $container - */ - public function __construct(Container $container) - { - $this->container = $container; - } - - /** - * Load automatically models - * - * @access public - * @param string $name Model name - * @return mixed - */ - public function __get($name) - { - return $this->container[$name]; - } -} |