Passed
Push — main ( aa5a53...a9bb83 )
by Slawomir
04:36
created

SecurityHttpTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A logout() 0 5 1
1
<?php
2
3
namespace App\Tests\Modules\Security\Integration\Http;
4
5
use App\Tests\TestUtils\SerializationTrait;
6
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
7
8
trait SecurityHttpTrait
9
{
10
11
    use SerializationTrait;
12
13
    public function logout(): string
14
    {
15
        $client = $this->getClient();
16
        $client->request('POST', '/api/logout/');
17
        return $client->getResponse()->getContent();
18
    }
19
20
    /**
21
     * @return KernelBrowser
22
     */
23
    public abstract function getClient(): KernelBrowser;
24
}