ApiUserLogoutAction::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\Authentication\Actions;
4
5
use App\Containers\Authentication\Tasks\ApiLogoutTask;
6
use App\Ship\Parents\Actions\Action;
7
8
/**
9
 * Class ApiUserLogoutAction
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class ApiUserLogoutAction extends Action
14
{
15
16
    /**
17
     * @param $authorizationHeader
18
     *
19
     * @return bool
20
     */
21
    public function run($authorizationHeader)
22
    {
23
        $hasLoggedOut = $this->call(ApiLogoutTask::class, [$authorizationHeader]);
24
25
        return $hasLoggedOut;
26
    }
27
}
28