| 1 | <?php |
||
| 18 | class Identity |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Attribute map |
||
| 22 | * |
||
| 23 | * @var AttributeMap |
||
| 24 | */ |
||
| 25 | private $attribute_map; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Auth adapter |
||
| 30 | * |
||
| 31 | * @var AdapterInterface |
||
| 32 | */ |
||
| 33 | private $adapter; |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Logger |
||
| 38 | * |
||
| 39 | * @var Logger |
||
| 40 | */ |
||
| 41 | protected $logger; |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * Initialize |
||
| 46 | * |
||
| 47 | * @param AdapterInterface $adapter |
||
| 48 | * @param AttributeMap $map |
||
| 49 | * @param Logger $logger |
||
| 50 | * @return void |
||
|
|
|||
| 51 | */ |
||
| 52 | public function __construct(AdapterInterface $adapter, AttributeMap $map, Logger $logger) |
||
| 58 | |||
| 59 | |||
| 60 | /** |
||
| 61 | * Get attribute map |
||
| 62 | * |
||
| 63 | * @return AttributeMap |
||
| 64 | */ |
||
| 65 | public function getAttributeMap(): AttributeMap |
||
| 69 | |||
| 70 | |||
| 71 | /** |
||
| 72 | * Get adapter |
||
| 73 | * |
||
| 74 | * @return AdapterInterface |
||
| 75 | */ |
||
| 76 | public function getAdapter(): AdapterInterface |
||
| 80 | |||
| 81 | |||
| 82 | /** |
||
| 83 | * Get identity |
||
| 84 | * |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | public function getIdentifier(): string |
||
| 91 | |||
| 92 | |||
| 93 | /** |
||
| 94 | * Get identity attributes |
||
| 95 | * |
||
| 96 | * @return array |
||
| 97 | */ |
||
| 98 | public function getAttributes(): array |
||
| 102 | } |
||
| 103 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.