| 1 | <?php |
||
| 8 | class PhpArray implements ValidatableAdapterInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private $accounts; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $identity; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $credential; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $accounts |
||
| 27 | */ |
||
| 28 | public function __construct(array $accounts) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getIdentity() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $identity |
||
| 43 | * @return ValidatableAdapterInterface |
||
| 44 | */ |
||
| 45 | public function setIdentity($identity) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getCredential() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param mixed $credential |
||
| 61 | * @return ValidatableAdapterInterface |
||
| 62 | */ |
||
| 63 | public function setCredential($credential) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return Result |
||
| 71 | */ |
||
| 72 | public function authenticate() |
||
| 84 | } |
||
| 85 |