Completed
Push — develop ( 23fb07...aaf888 )
by Fabian
13s queued 11s
created

Context   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getToken() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cakasim\Payone\Sdk\Redirect\Context;
6
7
use Cakasim\Payone\Sdk\Redirect\Token\TokenInterface;
8
9
/**
10
 * @author Fabian Böttcher <[email protected]>
11
 * @since 1.0.0
12
 */
13
class Context implements ContextInterface
14
{
15
    /**
16
     * @var TokenInterface
17
     */
18
    protected $token;
19
20
    /**
21
     * Constructs the redirect context.
22
     *
23
     * @param TokenInterface $token The redirect token.
24
     */
25
    public function __construct(TokenInterface $token)
26
    {
27
        $this->token = $token;
28
    }
29
30
    /**
31
     * @inheritDoc
32
     */
33
    public function getToken(): TokenInterface
34
    {
35
        return $this->token;
36
    }
37
}
38