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

Application::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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