Slide 34
Slide 34 text
✅ϝιουͷந͕ἧ͍ͬͯΔ
public function run(int $userId, int $value): User {
$conn = $this->getConnection();
$user = $this->findUser($conn, $userId);
$someValue = $this->caluclateValue($user, $value);
$this->updatePoint($conn, $user, $someValue);
return $user;
}
ϝιουݺͼग़͠ͷΈͰॲཧϑϩʔΛهड़