コード例 #1
0
ファイル: Worker.php プロジェクト: jzplius/tdd_with_phpspec
 public function cleanClothes(Clothes $clothes)
 {
     if ($clothes->getStatus() == "dirty") {
         $clothes = $this->laundry->cleanClothes($clothes);
         return $clothes;
     } else {
         return false;
     }
 }
コード例 #2
0
ファイル: Laundry.php プロジェクト: jzplius/tdd_with_phpspec
 public function cleanClothes(Clothes $clothes)
 {
     if ($clothes->getStatus() == "dirty") {
         $clothes->setStatus("clean");
         return $clothes;
     } else {
         return false;
     }
 }