summaryrefslogtreecommitdiff
path: root/app/Formatter/GroupAutoCompleteFormatter.php
diff options
context:
space:
mode:
authorphecho <phecho@163.com>2016-12-21 10:58:41 +0800
committerphecho <phecho@163.com>2016-12-21 10:58:41 +0800
commit4724367e3b9c10af23bb6596f8f678477927c8c3 (patch)
tree06ee4e860252222c1784e182d87e22b879451751 /app/Formatter/GroupAutoCompleteFormatter.php
parent56d00ac1592ba5ab7006dfd161f1893e1fdc9bb0 (diff)
parent9d5d389de841705450190fb1ebbaa11393870dfe (diff)
Fix conflict
Diffstat (limited to 'app/Formatter/GroupAutoCompleteFormatter.php')
-rw-r--r--app/Formatter/GroupAutoCompleteFormatter.php22
1 files changed, 6 insertions, 16 deletions
diff --git a/app/Formatter/GroupAutoCompleteFormatter.php b/app/Formatter/GroupAutoCompleteFormatter.php
index 4d552886..d811de7f 100644
--- a/app/Formatter/GroupAutoCompleteFormatter.php
+++ b/app/Formatter/GroupAutoCompleteFormatter.php
@@ -12,36 +12,26 @@ use PicoDb\Table;
* @package formatter
* @author Frederic Guillot
*/
-class GroupAutoCompleteFormatter implements FormatterInterface
+class GroupAutoCompleteFormatter extends BaseFormatter implements FormatterInterface
{
/**
* Groups found
*
- * @access private
+ * @access protected
* @var GroupProviderInterface[]
*/
- private $groups;
+ protected $groups;
/**
- * Format groups for the ajax auto-completion
+ * Set groups
*
* @access public
* @param GroupProviderInterface[] $groups
+ * @return $this
*/
- public function __construct(array $groups)
+ public function withGroups(array $groups)
{
$this->groups = $groups;
- }
-
- /**
- * Set query
- *
- * @access public
- * @param Table $query
- * @return FormatterInterface
- */
- public function withQuery(Table $query)
- {
return $this;
}