@@ -56,6 +56,9 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param Entity\Identity $identity |
|
| 61 | + */ |
|
| 59 | 62 | public function delete($identity, string $override = null) |
| 60 | 63 | { |
| 61 | 64 | $key = $this->computeKey(get_class($identity), $override); |
@@ -64,6 +67,9 @@ discard block |
||
| 64 | 67 | } |
| 65 | 68 | |
| 66 | 69 | |
| 70 | + /** |
|
| 71 | + * @param Entity\StandardIdentity $identity |
|
| 72 | + */ |
|
| 67 | 73 | public function has($identity, string $override = null) |
| 68 | 74 | { |
| 69 | 75 | $key = $this->computeKey(get_class($identity), $override); |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | private $hashCost; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * @param Palladium\Repository\Identity $repository Repository for abstracting persistence layer structures |
|
| 30 | - * @param Psr\Log\LoggerInterface $logger PSR-3 compatible logger |
|
| 29 | + * @param Repository $repository Repository for abstracting persistence layer structures |
|
| 30 | + * @param LoggerInterface $logger PSR-3 compatible logger |
|
| 31 | 31 | * @param int $hashCost Optional value for setting the cost of hashing algorythm (default: 12) |
| 32 | 32 | */ |
| 33 | 33 | public function __construct(Repository $repository, DataMapper $accountMapper, LoggerInterface $logger, $hashCost = self::DEFAULT_HASH_COST) |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * @param string $password |
| 45 | 45 | * @param int $tokenLifespan |
| 46 | 46 | * |
| 47 | - * @return Palladium\Entity\StandardIdentity |
|
| 47 | + * @return Entity\StandardIdentity |
|
| 48 | 48 | */ |
| 49 | 49 | public function createStandardIdentity(string $identifier, string $password, $tokenLifespan = self::DEFAULT_TOKEN_LIFESPAN) |
| 50 | 50 | { |
@@ -9,9 +9,7 @@ |
||
| 9 | 9 | use Palladium\Entity as Entity; |
| 10 | 10 | use Palladium\Component\DataMapper; |
| 11 | 11 | use Palladium\Exception\IdentityConflict; |
| 12 | - |
|
| 13 | 12 | use Palladium\Repository\Identity as Repository; |
| 14 | -use Palladium\Contract\HasId; |
|
| 15 | 13 | use Psr\Log\LoggerInterface; |
| 16 | 14 | |
| 17 | 15 | class Registration |