__construct() public method

The constructor Initialize some local variables from the request
public __construct ( integer $idSite, Date $date, null | string $graphType = 'graphEvolution' )
$idSite integer
$date Piwik\Date ($this->date from controller)
$graphType null | string
 /**
  * The constructor
  * @param int $idSite
  * @param \Piwik\Date $date ($this->date from controller)
  */
 public function __construct($idSite, $date)
 {
     $this->metric = Common::getRequestVar('column', '', 'string');
     parent::__construct($idSite, $date);
 }