示例#1
0
 /**
  * @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();
 }
示例#2
0
 /**
  * @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();
 }
示例#3
0
 /**
  * @param mixed $duration
  */
 public function setDuration($duration)
 {
     $this->duration = $duration;
     parent::updateModifiedDate();
 }