Completed
Push — master ( b7d603...d97993 )
by Paweł
07:44
created

PackagePreviewToken   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 3
dl 0
loc 59
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getBody() 0 4 1
A setBody() 0 4 1
A getToken() 0 4 1
A setToken() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher Core Bundle.
7
 *
8
 * Copyright 2018 Sourcefabric z.ú. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2018 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\CoreBundle\Model;
18
19
use SWP\Bundle\ContentBundle\Model\RouteAwareTrait;
20
use SWP\Component\Common\Model\TimestampableTrait;
21
use SWP\Component\MultiTenancy\Model\TenantAwareTrait;
22
23
class PackagePreviewToken implements PackagePreviewTokenInterface
24
{
25
    use TimestampableTrait, TenantAwareTrait, RouteAwareTrait;
26
27
    /**
28
     * @var string
29
     */
30
    protected $id;
31
32
    /**
33
     * @var string
34
     */
35
    protected $body;
36
37
    /**
38
     * @var string
39
     */
40
    protected $token;
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getId(): string
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function getBody(): string
54
    {
55
        return $this->body;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function setBody(string $body): void
62
    {
63
        $this->body = $body;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function getToken(): string
70
    {
71
        return $this->token;
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77
    public function setToken(string $token): void
78
    {
79
        $this->token = $token;
80
    }
81
}
82