public function isTheSameAs(User $anotherUserObject) { return (int) $this->getId() == (int) $anotherUserObject->getId(); }
protected function check_delete(QuestionSheet $sheet, User $user) { return $user->isTheSameAs($sheet->getOwner()); }