| Total Complexity | 5 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class Identity implements IdentityInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Logger. |
||
| 21 | * |
||
| 22 | * @var Logger |
||
| 23 | */ |
||
| 24 | protected $logger; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Attribute map. |
||
| 28 | * |
||
| 29 | * @var AttributeMap |
||
| 30 | */ |
||
| 31 | protected $attribute_map; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Auth adapter. |
||
| 35 | * |
||
| 36 | * @var AdapterInterface |
||
| 37 | */ |
||
| 38 | protected $adapter; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Initialize. |
||
| 42 | * |
||
| 43 | * @param AdapterInterface $adapter |
||
| 44 | * @param AttributeMap $map |
||
| 45 | * @param Logger $logger |
||
| 46 | */ |
||
| 47 | public function __construct(AdapterInterface $adapter, AttributeMap $map, Logger $logger) |
||
| 48 | { |
||
| 49 | $this->attribute_map = $map; |
||
| 50 | $this->logger = $logger; |
||
| 51 | $this->adapter = $adapter; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function getAttributeMap(): AttributeMapInterface |
||
| 58 | { |
||
| 59 | return $this->attribute_map; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function getAdapter(): AdapterInterface |
||
| 66 | { |
||
| 67 | return $this->adapter; |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function getIdentifier(): string |
||
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | public function getAttributes(): array |
||
| 84 | } |
||
| 85 | } |
||
| 86 |