Add Status::getStatusValue()
authorGergő Tisza <gtisza@wikimedia.org>
Mon, 16 May 2016 09:57:53 +0000 (09:57 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 16 May 2016 09:57:53 +0000 (09:57 +0000)
Change-Id: Id8c87373b560a462dcbffe74c9e7c4780c3147f3

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