Files
kupshop/class/highcharts/HighchartJsExpr.php
2025-08-02 16:30:27 +02:00

47 lines
968 B
PHP

<?php
/**
*
* Copyright 2012-2012 Portugalmail Comunicações S.A (http://www.portugalmail.net/)
*
* See the enclosed file LICENCE for license information (GPLv3). If you
* did not receive this file, see http://www.gnu.org/licenses/gpl-3.0.html.
*
* @author Gonçalo Queirós <mail@goncaloqueiros.net>
*/
namespace highcharts;
class HighchartJsExpr
{
/**
* The javascript expression
*
* @var string
*/
private $_expression;
/**
* The HighchartJsExpr constructor
*
* @param string $expression The javascript expression
*/
public function __construct($expression)
{
$this->_expression = iconv(
mb_detect_encoding($expression),
"UTF-8",
$expression
);
}
/**
* Returns the javascript expression
*
* @return string The javascript expression
*/
public function getExpression()
{
return $this->_expression;
}
}