Rename mobile session setDateConfirm to setDateConfirmed

This commit is contained in:
Kendrick Chan 2018-01-28 13:51:57 +08:00
parent e56929dbcc
commit e3a41febc5
2 changed files with 4 additions and 2 deletions

View file

@ -180,6 +180,8 @@ class APIController extends Controller
// phone number // phone number
$phone_number = $req->request->get('phone_number'); $phone_number = $req->request->get('phone_number');
// TODO: spam protection
// TODO: validate phone number // TODO: validate phone number
// TODO: generate code and save // TODO: generate code and save

View file

@ -194,13 +194,13 @@ class MobileSession
return $this->confirm_flag; return $this->confirm_flag;
} }
public function setDateConfirm(DateTime $date) public function setDateConfirmed(DateTime $date)
{ {
$this->date_confirmed = $date; $this->date_confirmed = $date;
return $this; return $this;
} }
public function getDateConfirm() public function getDateConfirmed()
{ {
return $this->date_confirmed; return $this->date_confirmed;
} }