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