Issues (150)

repositories/base/Oauth2RepositoryInterface.php (1 issue)

1
<?php
2
3
namespace rhertogh\Yii2Oauth2Server\interfaces\components\repositories\base;
4
5
use rhertogh\Yii2Oauth2Server\interfaces\models\base\Oauth2ActiveRecordInterface;
6
use rhertogh\Yii2Oauth2Server\Oauth2Module;
7
8
/**
9
 * Represents the base for all repositories in the Oauth2 module.
10
 */
11
interface Oauth2RepositoryInterface
12
{
13
    /**
14
     * Set the module for this response.
15
     * @param Oauth2Module $module
16
     * @return $this
17
     * @since 1.0.0
18
     */
19
    public function setModule($module);
20
21
    /**
22
     * Get the class name of the models for this repository.
23
     * @return class-string<Oauth2ActiveRecordInterface>
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<Oauth2ActiveRecordInterface> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<Oauth2ActiveRecordInterface>.
Loading history...
24
     * @since 1.0.0
25
     */
26
    public function getModelClass();
27
}
28