Skip to content

Commit

Permalink
Added missing parameters college and major in user entity interface (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
padmasreegade authored Jun 6, 2024
1 parent f8308ec commit 11de475
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
32 changes: 32 additions & 0 deletions module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
46 changes: 46 additions & 0 deletions module/VuFind/src/VuFind/Db/Row/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 11de475

Please sign in to comment.