Methods

Source

LineCode
1
<?php
2
3
namespace AuthStack\OAuth2\Model\Protocol\Grant;
4
5
class GrantFactory
6
{
7
    /**
8
     * @return AuthorizationCode
9
     */
10
    public function authorizationCode(): AuthorizationCode
11
    {
12
        return new AuthorizationCode();
13
    }
14
15
    /**
16
     * @return Implicit
17
     */
18
    public function implicit(): Implicit
19
    {
20
        return new Implicit();
21
    }
22
23
    /**
24
     * @return PasswordCredentials
25
     */
26
    public function passwordCredentials(): PasswordCredentials
27
    {
28
        return new PasswordCredentials();
29
    }
30
31
    /**
32
     * @return ClientCredentials
33
     */
34
    public function clientCredentials(): ClientCredentials
35
    {
36
        return new ClientCredentials();
37
    }
38
}