aboutsummaryrefslogtreecommitdiff
path: root/private/View/Output.php
diff options
context:
space:
mode:
Diffstat (limited to 'private/View/Output.php')
-rw-r--r--private/View/Output.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/private/View/Output.php b/private/View/Output.php
deleted file mode 100644
index af9975e..0000000
--- a/private/View/Output.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace AugustOffensive\View;
-
-use AugustOffensive\Model;
-
-/**
- * Output formats for Results that are returned to the client.
- */
-class Output
-{
- /**
- * Formats the result into JSON.
- *
- * @param Model\Result $result The result to return to the client.
- *
- * @return string
- */
- public static function json (Model\Result $result): string
- {
- return json_encode(array(
- "Result-Type" => $result->getResultType(),
- "Content" => $result->getResult()
- ));
- }
-}