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