public function removeById(Uuid $id)
 {
     foreach ($this->users as $i => $user) {
         /** @var \Notes\Domain\Entity\User $user*/
         if ($user->getId()->__toString() === $id->__toString()) {
             unset($this->users[$i]);
             return true;
         }
     }
     return false;
 }
 public function removeById(Uuid $id)
 {
     $results = [];
     foreach ($this->users as $i => $user) {
         if ($user->getId()->__toString() === $id->__toString()) {
             unset($this->users[$i]);
             return true;
         }
     }
     return false;
 }
 /**
  * @param \Notes\Domain\ValueObject\Uuid $id
  * @param string $newUsername
  * @return bool
  */
 public function modifyById(Uuid $id, $newUsername)
 {
     // TODO: Implement modifyById() method.
     return $this->adapter->update("users", [$newUsername, $id->__toString()]);
 }