Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Apie\Common\Interfaces; |
| 4 | |
| 5 | use Apie\Core\Entities\EntityInterface; |
| 6 | use Apie\Core\Lists\StringList; |
| 7 | |
| 8 | /** |
| 9 | * If an entity has this interface and is used as the 'authenticated' user it can have roles. |
| 10 | */ |
| 11 | interface HasRolesInterface extends EntityInterface |
| 12 | { |
| 13 | public function getRoles(): StringList; |
| 14 | } |