1 | <?php |
||
7 | trait ScopeEntityTrait |
||
8 | { |
||
9 | /** |
||
10 | * @var ScopeEntityInterface[] |
||
11 | */ |
||
12 | protected $scopes = []; |
||
13 | |||
14 | /** |
||
15 | * Associate a scope with the token. |
||
16 | * |
||
17 | * @param ScopeEntityInterface $scope |
||
18 | */ |
||
19 | 17 | public function addScope(ScopeEntityInterface $scope) |
|
23 | |||
24 | /** |
||
25 | * Return an array of scopes associated with the token. |
||
26 | * |
||
27 | * @return ScopeEntityInterface[] |
||
28 | */ |
||
29 | 13 | public function getScopes() |
|
33 | } |
||
34 |