Permalink
Browse files

add setters & getters for heuristic decision

  • Loading branch information...
1 parent efa6418 commit b07d5e907ca9d25ef1493021e7d72eab892fa5ca @widmogrod widmogrod committed Feb 18, 2013
Showing with 22 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +21 −1 classes/phing/tasks/ext/ssh/ScpTask.php
View
@@ -1,6 +1,7 @@
.buildpath
.project
.settings
+.idea
build/full
build/pear
test/reports
@@ -268,7 +268,27 @@ public function getFetch()
{
return $this->fetch;
}
-
+
+ /**
+ * Declare number of successful operations above which "sftp" will be chosen over "scp".
+ *
+ * @param int $heuristicDecision Number
+ */
+ public function setHeuristicDecision($heuristicDecision)
+ {
+ $this->heuristicDecision = (int) $heuristicDecision;
+ }
+
+ /**
+ * Get declared number of successful operations above which "sftp" will be chosen over "scp".
+ *
+ * @return int
+ */
+ public function getHeuristicDecision()
+ {
+ return $this->heuristicDecision;
+ }
+
/**
* Nested creator, creates a FileSet for this task
*

0 comments on commit b07d5e9

Please sign in to comment.