public function __construct($performer, $leaveRequest, $leaveList) { parent::__construct(); $this->performer = $performer; $this->leaveRequest = $leaveRequest; $this->leaveList = $leaveList; }
public function __construct($leaveRequest, $leaveList, $performerId) { parent::__construct(); $this->employeeService = new EmployeeService(); $this->leaveList = $leaveList; $this->_populatePerformer($performerId); $this->leaveRequest = $leaveRequest; $this->_populateRecipient(); }
public function __construct($leaveList, $performerType, $performerId, $requestType) { parent::__construct(); $this->employeeService = new EmployeeService(); $this->leaveList = $leaveList; $this->performerType = $performerType; $this->_populatePerformer($performerId); $this->leaveRequest = $leaveList[0]->getLeaveRequest(); $this->_populateRecipient(); $this->requestType = $requestType; }