thephpleague /
oauth2-server
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @author Alex Bilbie <[email protected]> |
||
| 5 | * @copyright Copyright (c) Alex Bilbie |
||
| 6 | * @license http://mit-license.org/ |
||
| 7 | * |
||
| 8 | * @link https://github.com/thephpleague/oauth2-server |
||
| 9 | */ |
||
| 10 | |||
| 11 | declare(strict_types=1); |
||
| 12 | |||
| 13 | namespace League\OAuth2\Server\Entities\Traits; |
||
| 14 | |||
| 15 | trait EntityTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var non-empty-string |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 19 | */ |
||
| 20 | protected string $identifier; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return non-empty-string |
||
|
0 ignored issues
–
show
|
|||
| 24 | */ |
||
| 25 | 62 | public function getIdentifier(): string |
|
| 26 | { |
||
| 27 | 62 | return $this->identifier; |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param non-empty-string $identifier |
||
|
0 ignored issues
–
show
|
|||
| 32 | */ |
||
| 33 | 78 | public function setIdentifier(string $identifier): void |
|
| 34 | { |
||
| 35 | 78 | $this->identifier = $identifier; |
|
| 36 | } |
||
| 37 | } |
||
| 38 |