language; if ($language == null) { throw new \PrestaShopException('Context is null'); } return $language; } /** * @return \Currency|null */ public static function getCurrency() { return \Context::getContext()->currency; } /** * @return \Smarty */ public static function getSmarty() { $smarty = \Context::getContext()->smarty; if ($smarty == null) { throw new \PrestaShopException('Context is null'); } return $smarty; } /** * @return \Shop */ public static function getShop() { $shop = \Context::getContext()->shop; if ($shop == null) { throw new \PrestaShopException('Context is null'); } return $shop; } /** * @return \AdminController|\FrontController|\PrestaShopBundle\Bridge\AdminController\LegacyControllerBridgeInterface|null */ public static function getController() { $controller = \Context::getContext()->controller; if ($controller == null) { throw new \PrestaShopException('Context is null'); } return $controller; } /** * @return \Cookie */ public static function getCookie() { $cookie = \Context::getContext()->cookie; if ($cookie == null) { throw new \PrestaShopException('Context is null'); } return $cookie; } /** * @return \Link */ public static function getLink() { $link = \Context::getContext()->link; if ($link == null) { throw new \PrestaShopException('Context is null'); } return $link; } }