Join
2 years ago
ComputedMetricFactory.php
2 years ago
Dimension.php
2 years ago
DimensionMetricFactory.php
2 years ago
DimensionSegmentFactory.php
2 years ago
DimensionsProvider.php
2 years ago
Discriminator.php
2 years ago
Join.php
2 years ago
MetricsList.php
2 years ago
Updater.php
2 years ago
Join.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | * |
| 9 | */ |
| 10 | namespace Piwik\Columns; |
| 11 | |
| 12 | use Exception; |
| 13 | /** |
| 14 | * @api |
| 15 | * @since 3.1.0 |
| 16 | */ |
| 17 | class Join |
| 18 | { |
| 19 | private $table; |
| 20 | private $column; |
| 21 | private $targetColumn; |
| 22 | /** |
| 23 | * Join constructor. |
| 24 | * @param $table |
| 25 | * @param $column |
| 26 | * @param $targetColumn |
| 27 | * @throws Exception |
| 28 | */ |
| 29 | public function __construct($table, $column, $targetColumn) |
| 30 | { |
| 31 | $this->table = $table; |
| 32 | $this->column = $column; |
| 33 | $this->targetColumn = $targetColumn; |
| 34 | } |
| 35 | /** |
| 36 | * @return string |
| 37 | */ |
| 38 | public function getTable() |
| 39 | { |
| 40 | return $this->table; |
| 41 | } |
| 42 | /** |
| 43 | * @return string |
| 44 | */ |
| 45 | public function getColumn() |
| 46 | { |
| 47 | return $this->column; |
| 48 | } |
| 49 | /** |
| 50 | * @return string |
| 51 | */ |
| 52 | public function getTargetColumn() |
| 53 | { |
| 54 | return $this->targetColumn; |
| 55 | } |
| 56 | } |
| 57 |