X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FCommandError.php;fp=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FCommandError.php;h=bfe257bd21c7984b0ba66425042c7e84eeb78282;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/consolidation/annotated-command/src/CommandError.php b/vendor/consolidation/annotated-command/src/CommandError.php new file mode 100644 index 000000000..bfe257bd2 --- /dev/null +++ b/vendor/consolidation/annotated-command/src/CommandError.php @@ -0,0 +1,32 @@ +message = $message; + // Ensure the exit code is non-zero. The exit code may have + // come from an exception, and those often default to zero if + // a specific value is not provided. + $this->exitCode = $exitCode == 0 ? 1 : $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } + + public function getOutputData() + { + return $this->message; + } +}