29 lines
450 B
C++
29 lines
450 B
C++
/*
|
|
File: Payslip.cpp
|
|
* Description : Models a payslip entity that stores salary information.
|
|
* Author : Trenser
|
|
* Created : 31-Mar-2026
|
|
*/
|
|
|
|
#include "Payslip.h"
|
|
|
|
//Getters and setters
|
|
const std::string& Payslip::getPayslipId() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
double Payslip::getSalary() const
|
|
{
|
|
return m_salary;
|
|
}
|
|
|
|
void Payslip::setPayslipId(const std::string& id)
|
|
{
|
|
m_id = id;
|
|
}
|
|
|
|
void Payslip::setSalary(double salary)
|
|
{
|
|
m_salary = salary;
|
|
} |