summaryrefslogtreecommitdiffstats
path: root/src/Components/GroupKeyword.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components/GroupKeyword.php')
-rw-r--r--src/Components/GroupKeyword.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/Components/GroupKeyword.php b/src/Components/GroupKeyword.php
index 4fb667f..1c7dfdd 100644
--- a/src/Components/GroupKeyword.php
+++ b/src/Components/GroupKeyword.php
@@ -21,29 +21,20 @@ use PhpMyAdmin\SqlParser\TokensList;
class GroupKeyword extends Component
{
/**
- * The expression that is used for ordering.
+ * The expression that is used for grouping.
*
* @var Expression
*/
public $expr;
-
- /**
- * The order type.
- *
- * @var string
- */
- public $type;
/**
* Constructor.
*
* @param Expression $expr the expression that we are sorting by
- * @param string $type the sorting type
*/
- public function __construct($expr = null, $type = '')
+ public function __construct($expr = null)
{
$this->expr = $expr;
- $this->type = $type;
}
/**
@@ -135,7 +126,7 @@ class GroupKeyword extends Component
return implode(', ', $component);
}
- return trim($component->expr . ' ' . $component->type);
+ return trim($component->expr);
}
}