| 1 | <?php |
||
| 14 | class UsersResolvers |
||
| 15 | { |
||
| 16 | const SEPARATOR = '|'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param Record|UserEntityInterface|UserTrait $entity |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | 2 | public static function identifier(Record $entity) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $identifier |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public static function resolve(string $identifier) |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @param $userTable |
||
| 40 | * @param $userIdentifier |
||
| 41 | * @return \Nip\Records\AbstractModels\Record |
||
| 42 | */ |
||
| 43 | protected static function resolveEntity($userTable, $userIdentifier) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $identifier |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | protected static function parseIdentifier($identifier) |
||
| 62 | } |
||
| 63 |