diff options
Diffstat (limited to 'core/Plugin/Segment.php')
-rw-r--r-- | core/Plugin/Segment.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Plugin/Segment.php b/core/Plugin/Segment.php index 41933a142b..520fa26c0f 100644 --- a/core/Plugin/Segment.php +++ b/core/Plugin/Segment.php @@ -13,6 +13,9 @@ namespace Piwik\Plugin; */ class Segment { + const TYPE_DIMENSION = 'dimension'; + const TYPE_METRIC = 'metric'; + private $type; private $category; private $name; @@ -89,6 +92,14 @@ class Segment } /** + * @return string + */ + public function getSqlSegment() + { + return $this->sqlSegment; + } + + /** * @param mixed $type */ public function setType($type) |