TheIconic\Tracking\GoogleAnalytics\Analytics::getParameterClassConstant PHP Method

getParameterClassConstant() private method

Gets a contant from a class dynamically.
private getParameterClassConstant ( $constant, $exceptionMsg ) : mixed
$constant
$exceptionMsg
return mixed
    private function getParameterClassConstant($constant, $exceptionMsg)
    {
        if (defined($constant)) {
            return constant($constant);
        } else {
            throw new \BadMethodCallException($exceptionMsg);
        }
    }