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

Context::getToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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