Completed
Push — master ( 8d3dbf...7592af )
by Paweł
62:36
created

Application   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 2
dl 0
loc 67
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A getAppId() 0 4 1
A setAppId() 0 4 1
A getAppSecret() 0 4 1
A setAppSecret() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher Facebook Instant Articles Bundle.
7
 *
8
 * Copyright 2016 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 2016 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\FacebookInstantArticlesBundle\Model;
18
19
use SWP\Component\Common\Model\EnableableInterface;
20
use SWP\Component\Common\Model\EnableableTrait;
21
use SWP\Component\Common\Model\TimestampableInterface;
22
use SWP\Component\Common\Model\TimestampableTrait;
23
24
class Application implements TimestampableInterface, EnableableInterface, ApplicationInterface
25
{
26
    use TimestampableTrait, EnableableTrait;
27
28
    /**
29
     * @var int
30
     */
31
    protected $id;
32
33
    /**
34
     * @var string
35
     */
36
    protected $appId;
37
38
    /**
39
     * @var string
40
     */
41
    protected $appSecret;
42
43
    /**
44
     * Application constructor.
45
     */
46 4
    public function __construct()
47
    {
48 4
        $this->setEnabled(true);
49 4
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54 1
    public function getId()
55
    {
56 1
        return $this->id;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62 4
    public function getAppId()
63
    {
64 4
        return $this->appId;
65
    }
66
67
    /**
68
     * {@inheritdoc}
69
     */
70 4
    public function setAppId(string $appId)
71
    {
72 4
        $this->appId = $appId;
73 4
    }
74
75
    /**
76
     * {@inheritdoc}
77
     */
78 4
    public function getAppSecret()
79
    {
80 4
        return $this->appSecret;
81
    }
82
83
    /**
84
     * {@inheritdoc}
85
     */
86 4
    public function setAppSecret(string $appSecret)
87
    {
88 4
        $this->appSecret = $appSecret;
89 4
    }
90
}
91