diff options
Diffstat (limited to 'private/view')
| -rw-r--r-- | private/view/Result.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/private/view/Result.php b/private/view/Result.php deleted file mode 100644 index 2d12c28..0000000 --- a/private/view/Result.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\view; - -use AugustOffensive\controller; -use AugustOffensive\model; - -/** - * Outputs the JSON result by communicating with the controller. - */ -class Result -{ - /** - * Prepares the output and environment for the front end of the service. - * - * @param model\Connection $connection "needs to know" model exists - * - * @return Result - */ - public function __construct (model\Connection $connection) - { - header("Content-Type: application/json"); - // - return $this; - } - - /** - * Communicates with the controller to generate the JSON result. - * - * @return string $result resulting sendback object generated from query. - */ - public function collect (): string - { - // - return json_encode(array("Result-Type" => "", "Content" => array())); - } -} |
