diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-12 04:24:56 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-12 04:24:56 +0400 |
commit | 1fe0a1fcaa7685004b0d272d9e558fae0008c241 (patch) | |
tree | 3ccbd7e48407ac92c98a7adcda208abc4e56d44a /core/Plugin/Segment.php | |
parent | 0cd8e6ac711d45fe848d9e0b2df1b77d90307c59 (diff) |
defined segments in dimensions
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) |