| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class RedirectUriRepository extends \Limoncello\Passport\Repositories\RedirectUriRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = RedirectUri::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class ScopeRepository extends \Limoncello\Passport\Repositories\ScopeRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = Scope::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class RedirectUriRepository extends \Limoncello\Passport\Repositories\RedirectUriRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = RedirectUri::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class ScopeRepository extends \Limoncello\Passport\Repositories\ScopeRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = Scope::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class RedirectUriRepository extends \Limoncello\Passport\Repositories\RedirectUriRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = RedirectUri::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 25-61 (lines=37) @@ | ||
| 22 | /** |
|
| 23 | * @package Limoncello\Passport |
|
| 24 | */ |
|
| 25 | class ScopeRepository extends \Limoncello\Passport\Repositories\ScopeRepository |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $modelClass; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @param Connection $connection |
|
| 34 | * @param DatabaseSchemaInterface $databaseSchema |
|
| 35 | * @param string $modelClass |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | Connection $connection, |
|
| 39 | DatabaseSchemaInterface $databaseSchema, |
|
| 40 | string $modelClass = Scope::class |
|
| 41 | ) { |
|
| 42 | $this->setConnection($connection)->setDatabaseSchema($databaseSchema); |
|
| 43 | $this->modelClass = $modelClass; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @inheritdoc |
|
| 48 | */ |
|
| 49 | protected function getClassName(): string |
|
| 50 | { |
|
| 51 | return $this->modelClass; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | protected function getTableNameForReading(): string |
|
| 58 | { |
|
| 59 | return $this->getTableNameForWriting(); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||