From 5b860d78b83c87dcdbb0de539665834b42ff46ef Mon Sep 17 00:00:00 2001 From: gridnev Date: Wed, 16 Dec 2020 11:39:46 +0300 Subject: [PATCH] Add CommandOutputFormatterTrait --- .../Traits/CommandOutputFormatterTrait.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Command/Traits/CommandOutputFormatterTrait.php diff --git a/Command/Traits/CommandOutputFormatterTrait.php b/Command/Traits/CommandOutputFormatterTrait.php new file mode 100644 index 0000000..9db1b4b --- /dev/null +++ b/Command/Traits/CommandOutputFormatterTrait.php @@ -0,0 +1,21 @@ +getMessage('INFO', $message); + } + + public function getErrorMessage(string $message): string + { + return $this->getMessage('ERROR', $message); + } +} \ No newline at end of file