/** * @param \TestController\Domain\Entities\User $user * * @return bool */ public function delete(User $user) { return $this->pdo->exec("DELETE FROM users WHERE id=" . $user->getId()) === true; }