/** * @param null $username * @param null $email * @internal param null $password */ public function updateBasicData($username = null, $email = null) { if (!empty($username)) { $this->setUsername($username); } if (!empty($email)) { $this->setEmail($email); } parent::updateModifiedDate(); }
/** * @param null $name * @param null $start * @param null $end * @param null $memo */ public function updateShiftTypeData($name = null, $start = null, $end = null, $memo = null) { if (!empty($name)) { $this->setName($name); } if (!empty($start)) { $this->setStart($start); } if (!empty($end)) { $this->setEnd($end); } $this->setMemo($memo); parent::updateModifiedDate(); }
/** * @param mixed $duration */ public function setDuration($duration) { $this->duration = $duration; parent::updateModifiedDate(); }