From 11de475aa347c8c7655f985be20f2a01201c1bef Mon Sep 17 00:00:00 2001 From: padmasreegade <144289371+padmasreegade@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:30:33 -0400 Subject: [PATCH] Added missing parameters college and major in user entity interface (#3759) --- .../VuFind/Db/Entity/UserEntityInterface.php | 32 +++++++++++++ module/VuFind/src/VuFind/Db/Row/User.php | 46 +++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php b/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php index 9ec464fed62..8a0752a8fb4 100644 --- a/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php +++ b/module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php @@ -241,6 +241,38 @@ public function setCatPassEnc(?string $passEnc): UserEntityInterface; */ public function getCatPassEnc(): ?string; + /** + * Set college. + * + * @param string $college College + * + * @return UserEntityInterface + */ + public function setCollege(string $college): UserEntityInterface; + + /** + * Get college. + * + * @return string + */ + public function getCollege(): string; + + /** + * Set major. + * + * @param string $major Major + * + * @return UserEntityInterface + */ + public function setMajor(string $major): UserEntityInterface; + + /** + * Get major. + * + * @return string + */ + public function getMajor(): string; + /** * Set verification hash for recovery. * diff --git a/module/VuFind/src/VuFind/Db/Row/User.php b/module/VuFind/src/VuFind/Db/Row/User.php index e8671b91a00..a2ed2505c24 100644 --- a/module/VuFind/src/VuFind/Db/Row/User.php +++ b/module/VuFind/src/VuFind/Db/Row/User.php @@ -971,6 +971,52 @@ public function getCatPassEnc(): ?string return $this->cat_pass_enc; } + /** + * Set college. + * + * @param string $college College + * + * @return UserEntityInterface + */ + public function setCollege(string $college): UserEntityInterface + { + $this->college = $college; + return $this; + } + + /** + * Get college. + * + * @return string + */ + public function getCollege(): string + { + return $this->college ?? ''; + } + + /** + * Set major. + * + * @param string $major Major + * + * @return UserEntityInterface + */ + public function setMajor(string $major): UserEntityInterface + { + $this->major = $major; + return $this; + } + + /** + * Get major. + * + * @return string + */ + public function getMajor(): string + { + return $this->major ?? ''; + } + /** * Set verification hash for recovery. *