From e62a93e0216f93a58d203d88741628268d79c395 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 9 Apr 2018 00:07:11 +0200 Subject: [PATCH] adding app/library/OAuth/UserData/Gitlab.php --- app/library/OAuth/UserData/Gitlab.php | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 app/library/OAuth/UserData/Gitlab.php diff --git a/app/library/OAuth/UserData/Gitlab.php b/app/library/OAuth/UserData/Gitlab.php new file mode 100644 index 0000000..697747a --- /dev/null +++ b/app/library/OAuth/UserData/Gitlab.php @@ -0,0 +1,56 @@ +data = $data; + } + + /** + * {@inheritDoc} + */ + public function getProvider() + { + return 'Gitlab'; + } + + /** + * {@inheritDoc} + */ + public function getId() + { + return (int) $this->data['id']; + } + + /** + * {@inheritDoc} + */ + public function getUsername() + { + return $this->data['username']; + } + + /** + * {@inheritDoc} + */ + public function getName() + { + return $this->data['name']; + } + + /** + * {@inheritDoc} + */ + public function getEmail() + { + return $this->data['email']; + } +}