public static function viewData(
        $data,
        $links = null,
        $meta = null,
        $included = null
    ) {
        $viewParameters = new \stdClass();

        if ($links) {
            $viewParameters->links = $links;
        }

        $viewParameters->data = $data;

        if ($included !== null) {
            $viewParameters->included = $included;
        }

        if ($meta) {
            $viewParameters->meta = $meta;
        }

        \Phramework\Phramework::view($viewParameters);

        unset($viewParameters);

        return true;
    }