skeeks\cms\helpers\UrlHelper::__construct PHP Method

__construct() public method

public __construct ( $route, array $data = [] )
$route
$data array
    public function __construct($route, $data = [])
    {
        if (is_string($route)) {
            $this->_route = (string) $route;
            $this->_data = (array) $data;
        } else {
            if (is_array($route)) {
                $this->_route = (string) $route[0];
                unset($route[0]);
                if ($route) {
                    $this->_data = array_merge($route, (array) $data);
                } else {
                    $this->_data = (array) $data;
                }
            }
        }
    }