Lines 100.00% 12 / 12
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
Profile 100.00% 12 / 12 100.00% 1 / 1 1 100.00% 1 / 1
 readResponse 100.00% 12 / 12 100.00% 1 / 1 1
1<?php
2
3/**
4 * @package Zmsadmin
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsadmin;
9
10class Profile extends BaseController
11{
12    /**
13     * @SuppressWarnings(Param)
14     * @return \Psr\Http\Message\ResponseInterface
15     */
16    #[\Override]
17    public function readResponse(
18        \Psr\Http\Message\RequestInterface $request,
19        \Psr\Http\Message\ResponseInterface $response,
20        array $args
21    ): \Psr\Http\Message\ResponseInterface {
22        $workstation = \App::$http->readGetResult('/workstation/', ['resolveReferences' => 1])->getEntity();
23        $profile = \App::$http->readGetResult('/workstation/profile/')->getEntity();
24
25        return \BO\Slim\Render::withHtml(
26            $response,
27            'page/profile.twig',
28            [
29                'title' => 'Nutzerprofil',
30                'menuActive' => 'profile',
31                'workstation' => $workstation,
32                'profile' => $profile,
33            ]
34        );
35    }
36}