private function getByAccessKey(string
$clientIdentifier): ?array
{ $origin = AccessKeyHelper::
getOrigin($clientIdentifier);
if ($origin === 'user'
) { return $this->
getUserByAccessKey($clientIdentifier);
} if ($origin === 'integration'
) { return $this->
getIntegrationByAccessKey($clientIdentifier);
} return null;
} /**
* @return array<string, string|null>|null
*/
private function getUserByAccessKey(string
$clientIdentifier): ?array
{ $key =
$this->connection->
fetchAssociative('SELECT user_id, secret_access_key FROM user_access_key WHERE access_key = :accessKey',
[