RefreshToken::getScopes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
ccs 0
cts 3
cp 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Majora\Component\OAuth\Entity;
4
5
use Majora\Component\OAuth\Model\RefreshTokenInterface;
6
use Majora\Framework\Model\CollectionableInterface;
7
use Majora\Framework\Model\CollectionableTrait;
8
use Majora\Framework\Serializer\Model\SerializableTrait;
9
10
/**
11
 * Class RefreshToken is the default implementation of RefreshTokenInterface.
12
 */
13
class RefreshToken extends Token implements RefreshTokenInterface, CollectionableInterface
14
{
15
    use CollectionableTrait, SerializableTrait;
0 ignored issues
show
Deprecated Code introduced by
The trait Majora\Framework\Seriali...Model\SerializableTrait has been deprecated.

This class, trait or interface has been deprecated.

Loading history...
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public static function getScopes()
21
    {
22
        return array(
23
            'identifier' => array('id', 'hash'),
24
        );
25
    }
26
}
27