Completed
Push — master ( f74ca7...ea85ac )
by Damien
10:39
created

ProviderIdentityRecord::getProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 9.9666
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: dsmrt
5
 * Date: 1/12/18
6
 * Time: 9:33 PM
7
 */
8
9
namespace flipbox\saml\sp\records;
10
11
use flipbox\saml\core\records\AbstractProviderIdentity;
12
13
/**
14
 * Class ProviderIdentityRecord
15
 * @package flipbox\saml\sp\records
16
 * @property int $userId
17
 * @property bool $enabled
18
 * @property string $sessionId
19
 */
20
class ProviderIdentityRecord extends AbstractProviderIdentity
21
{
22
23
    const TABLE_ALIAS = 'saml_sp_provider_identity';
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function getProvider()
29
    {
30
        return $this->hasOne(
31
            ProviderRecord::class,
32
            [
33
                'id' => 'providerId',
34
            ]
35
        );
36
    }
37
}
38