Saml   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethodNamespace() 0 3 1
A idp() 0 3 1
1
<?php
2
/**
3
 * This file is part of graze/gigya-client
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/gigya-client/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/gigya-client
12
 */
13
14
namespace Graze\Gigya\Endpoint;
15
16
use Graze\Gigya\Gigya;
17
use Graze\Gigya\Response\ResponseInterface;
18
19
/**
20
 * Class Saml.
21
 *
22
 *
23
 * @link   http://developers.gigya.com/display/GD/FIdM+SAML+REST
24
 *
25
 * @method ResponseInterface delIdP(array $params = [], array $options = []) @link
26
 *         http://developers.gigya.com/display/GD/fidm.saml.delIdP+REST
27
 * @method ResponseInterface getConfig(array $params = [], array $options = []) @link
28
 *         http://developers.gigya.com/display/GD/fidm.saml.getConfig+REST
29
 * @method ResponseInterface getRegisteredIdPs(array $params = [], array $options = []) @link
30
 *         http://developers.gigya.com/display/GD/fidm.saml.getRegisteredIdPs+REST
31
 * @method ResponseInterface importIdPMetadata(array $params = [], array $options = []) @link
32
 *         http://developers.gigya.com/display/GD/fidm.saml.importIdPMetadata+REST
33
 * @method ResponseInterface registerIdP(array $params = [], array $options = []) @link
34
 *         http://developers.gigya.com/display/GD/fidm.saml.registerIdP+REST
35
 * @method ResponseInterface setConfig(array $params = [], array $options = []) @link
36
 *         http://developers.gigya.com/display/GD/fidm.saml.setConfig+REST
37
 */
38
class Saml extends Client
39
{
40
    /**
41
     * {@inheritdoc}
42
     *
43
     * @return string
44
     */
45 2
    public function getMethodNamespace()
46
    {
47 2
        return Gigya::NAMESPACE_FIDM_SAML;
48
    }
49
50
    /**
51
     * @return SamlIdp
52
     */
53 1
    public function idp()
54
    {
55 1
        return $this->endpointFactory(SamlIdp::class);
56
    }
57
}
58