Skip to content

Commit

Permalink
getAgeYears to getAgeInYears
Browse files Browse the repository at this point in the history
  • Loading branch information
zaliqarosli committed Jul 27, 2020
1 parent 797538f commit ab015ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/libraries/Candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource
*
* @return int The candidate's age today as years
*/
public function getAgeYears(): int
public function getAgeInYears(): int
{
return (int)$this->getAge()->format('%y');
}
Expand All @@ -726,7 +726,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource
public function getAgeInMonths(): int
{
return (int)$this->getAge()->format('%m') +
12 * $this->getAgeYears();
12 * $this->getAgeInYears();
}

/**
Expand Down

0 comments on commit ab015ce

Please sign in to comment.