Merge "Add Status::getStatusValue()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 16 May 2016 20:08:17 +0000 (20:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 16 May 2016 20:08:17 +0000 (20:08 +0000)
includes/Status.php

index 3d2c887..f8370e4 100644 (file)
@@ -115,6 +115,14 @@ class Status {
                $this->sv->setResult( $ok, $value );
        }
 
+       /**
+        * Returns the wrapped StatusValue object
+        * @return StatusValue
+        */
+       public function getStatusValue() {
+               return $this->sv;
+       }
+
        /**
         * Returns whether the operation completed and didn't have any error or
         * warnings