public function cleanClothes(Clothes $clothes) { if ($clothes->getStatus() == "dirty") { $clothes = $this->laundry->cleanClothes($clothes); return $clothes; } else { return false; } }
public function cleanClothes(Clothes $clothes) { if ($clothes->getStatus() == "dirty") { $clothes->setStatus("clean"); return $clothes; } else { return false; } }