. */ namespace SP\Domain\Core; use SP\Domain\Core\Exceptions\CheckException; /** * Class PhpExtensionCheckerInterface * * @method bool checkCurl(bool $exception = false) * @method bool checkLdap(bool $exception = false) * @method bool checkPhar(bool $exception = false) * @method bool checkGd(bool $exception = false) */ interface PhpExtensionCheckerService { /** * Checks if the extension is installed * * @param string $extension * @param bool $exception Throws an exception if the extension is not available * * @return bool * @throws CheckException */ public function checkIsAvailable(string $extension, bool $exception = false): bool; /** * @throws CheckException */ public function checkMandatory(): void; /** * Returns missing extensions */ public function getMissing(): array; }