Add documentation for DerivativeRequest::__construct
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sat, 16 Nov 2013 20:02:28 +0000 (21:02 +0100)
committerSiebrand <siebrand@wikimedia.org>
Sat, 16 Nov 2013 20:07:19 +0000 (20:07 +0000)
Change-Id: I20e62d07b6a069b3c2b5b0cb67736ded294bcfb2

includes/WebRequest.php

index 4ad7344..536ce12 100644 (file)
@@ -1522,6 +1522,12 @@ class FauxRequest extends WebRequest {
 class DerivativeRequest extends FauxRequest {
        private $base;
 
+       /**
+        * @param WebRequest $base
+        * @param array $data Array of *non*-urlencoded key => value pairs, the
+        *   fake GET/POST values
+        * @param bool $wasPosted Whether to treat the data as POST
+        */
        public function __construct( WebRequest $base, $data, $wasPosted = false ) {
                $this->base = $base;
                parent::__construct( $data, $wasPosted );