Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ClientCredentials
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getGrant
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MediaWiki\Extension\OAuth\AuthorizationProvider\Grant;
4
5use League\OAuth2\Server\Grant\ClientCredentialsGrant;
6use League\OAuth2\Server\Grant\GrantTypeInterface;
7use MediaWiki\Extension\OAuth\AuthorizationProvider\AccessToken;
8
9class ClientCredentials extends AccessToken {
10
11    /**
12     * @return GrantTypeInterface
13     */
14    protected function getGrant(): GrantTypeInterface {
15        return new ClientCredentialsGrant();
16    }
17}