diff options
author | phecho <phecho@163.com> | 2016-12-21 10:58:41 +0800 |
---|---|---|
committer | phecho <phecho@163.com> | 2016-12-21 10:58:41 +0800 |
commit | 4724367e3b9c10af23bb6596f8f678477927c8c3 (patch) | |
tree | 06ee4e860252222c1784e182d87e22b879451751 /app/Formatter/GroupAutoCompleteFormatter.php | |
parent | 56d00ac1592ba5ab7006dfd161f1893e1fdc9bb0 (diff) | |
parent | 9d5d389de841705450190fb1ebbaa11393870dfe (diff) |
Fix conflict
Diffstat (limited to 'app/Formatter/GroupAutoCompleteFormatter.php')
-rw-r--r-- | app/Formatter/GroupAutoCompleteFormatter.php | 22 |
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; } |