feat(clinic): implement doctor detachment functionality with API endpoint and confirmation dialog
This commit is contained in:
@@ -147,6 +147,16 @@ class Clinic
|
||||
public function getCreatedAt(): int { return $this->createdAt; }
|
||||
public function getUpdatedAt(): int { return $this->updatedAt; }
|
||||
public function getDoctors(): Collection { return $this->doctors; }
|
||||
|
||||
public function hasDoctor(Doctor $doctor): bool { return $this->doctors->contains($doctor); }
|
||||
|
||||
public function removeDoctor(Doctor $doctor): self
|
||||
{
|
||||
$this->doctors->removeElement($doctor);
|
||||
$this->touch();
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSpecialties(): Collection { return $this->specialties; }
|
||||
public function getServices(): Collection { return $this->services; }
|
||||
public function getInsurances(): Collection { return $this->insurances; }
|
||||
|
||||
Reference in New Issue
Block a user