theme = $theme ?? new DefaultTheme(); } /** * Gets the CLITheme * * @return CLIThemeInterface */ public function getTheme(): CLIThemeInterface { return $this->theme; } /** * Sets the CLITheme * * @param CLIThemeInterface $theme * @return void */ public function setTheme(CLIThemeInterface $theme): void { $this->theme = $theme; } /** * Filters a string according to the specified style. * * @param string $message * @param string|null $style * @return string the resulting string */ public function filter(string $message, ?string $style = "default"): string { return $this->format($message, $style); } /** * Formats a message with color codes based on a CLITheme * * @param string $message * @param string $style * @return string */ public function format(string $message, string $style = "default"): string { $styleColors = $this->theme->getStyle($style); $bg = ''; if (isset($styleColors[1])) { $bg = ';' . $styleColors[1]; } return sprintf("\e[%s%sm%s\e[0m", $styleColors[0], $bg, $message); } } __halt_compiler();----SIGNATURE:----MfGTbs1LwBxI+dOJ7MJ9/g3cQO+4mjlGplJv3Cb0AASzulBlZodoy/85+LR1X3anZjjjOR/7PRgWxaKqgWAgD26wS3a57ZY/OFwCcRM3dxltKTFWTK2VC5eCo8QVlWpAtev7HsIaVedURtu5wIzMvXYOsP+bLMJZKTlzjhW2cDPfQtLkTg49CxlVQZs2kB+wv+4noiEqT5oOWxriAJQQeP+bEhtXG0G2Bsyf+8maa5np3j/4voDPMjpBkSXCrY5NokVysLg4IDIaaPuMKViCqpfNkOqwA2Z2sjYLchnoWrwl2lULHrBOMKnCU+1uwrXwdkQcsU6/uut6ksosiIpvaIkKw/kTOmqD3AMUv9ZPQ3zFlxPTsiUKTRdkcbXyG7fxwt3F6rHj4K0j+oGBb9gZ32bjUBBeuLmNTpolEW9dMH9AZknG6/wDDH6VkSrpiw2EpxhnNkN1zB5inDPNK2bMkkrWN2+4UmZlpCBi2wQKPMHJNVpknBTRJSU9pMKwMiX+4i3uBtoQiWEuJ+SPtvpN40tjl4kcacG6jFB03qd1+5IyFkHsDZ7yFQ6m8HzMyObVofPfLm+ENNjz3Xpf3u7qjRS0HTlLRBaANZov8FXxfnND471R3/9G2uueOaSXelQ3c+I1JyEOvm5DH7wG9LaF9HIIT+yTzES93dPBegI4JDY=----ATTACHMENT:----NzcxMDE2ODU3NzQ3ODAzIDQ4ODA5MjYwNDA0NTkzNTYgODM4NjkzMjcyNzAwODM5Mg==