Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
base
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 1
 get_auth_scope
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_external_service_class
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_external_service_provider
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 set_external_service_provider
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\auth\provider\oauth\service;
15
16/**
17 * Base OAuth abstract class that all OAuth services should implement
18 */
19abstract class base implements service_interface
20{
21    /**
22     * External OAuth service provider
23     *
24     * @var \OAuth\Common\Service\ServiceInterface
25     */
26    protected $service_provider;
27
28    /**
29     * {@inheritdoc}
30     */
31    public function get_auth_scope()
32    {
33        return [];
34    }
35
36    /**
37     * {@inheritdoc}
38     */
39    public function get_external_service_class()
40    {
41        return '';
42    }
43
44    /**
45     * {@inheritdoc}
46     */
47    public function get_external_service_provider()
48    {
49        return $this->service_provider;
50    }
51
52    /**
53     * {@inheritdoc}
54     */
55    public function set_external_service_provider(\OAuth\Common\Service\ServiceInterface $service_provider)
56    {
57        $this->service_provider = $service_provider;
58    }
59}