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:----o9AfyrOtF1eV0LKNKkGT45dqyRHa1c4hJgLRfn2lxlq4SqGNEet+poMn+RJ+FOUYDj6krcZBnETYqJtqf2VMm9/Z0MPtCU8H+70jMC2UibzeAN42Vi20pqr8jTBzOZ1NZjuCT/CxZRuukNbCEPMmHjDhHWDHAd/2ZgX3OJSRADLTxmt0CMr22vHzll7XY7gFwFZgOtBEGDNE98H8/EHU+qvQREA/areT1mARDnERp+hkaoY+MmPRHZutaW+2jYXgrxyOIhzLmyXvST3sLZ8/oyzttGJ5xiGjPyE4GMV1m/mGNi6E9K/pS68tNRe/4n9NDcSQoC+1B3a9iiLl8wnHavD9aI76OfLf1h5PEF7jmojOdJa259TJRwUEN0Q+BVL2Ia2OvNOhqMziwmOFIi+Qpffc9JFzgiJp3IBMP5jsMpI90A0+XMY1YpcqpVNZ49Msljzs2mVSSS3tFogCTpO8pVzwXswH8R78W1ua3LSfYENoYNnQY35OfhbaoirAt/LUFNO0F2CYmTD6/zx7cSdeTerwmvsguAestZXjvVvYamWIRdc2i2suUBoFGoW1vIvYq053xmcwzv2Qcs2yPD94BXIEQ7gVpZl8BeV0qpVAMMpDbxOFKYAf1irQC6OHVo9BxEEjow2an2nbeyDd1+pCNALAUWZvr0f1q8zkQwJQEnY=----ATTACHMENT:----NTE1ODY2NTYyODc5MjUzOSA0ODczODY3NTM5Nzg0NzM0IDU1Mzk1MTM0OTE3NTQzMjU=