Webiny\Component\Rest\Response\RequestBag::setMethodParameters PHP Method

setMethodParameters() public method

Set the array holding the information about the method parameters.
public setMethodParameters ( array $methodParameters )
$methodParameters array Array holding the information about the method parameters.
    public function setMethodParameters($methodParameters)
    {
        $this->methodParameters = $methodParameters;
        return $this;
    }

Usage Example

Example #1
0
 public function testSetGetMethodParameters()
 {
     $rb = new RequestBag();
     $rb->setMethodParameters(['data' => 'foo']);
     $this->assertSame(['data' => 'foo'], $rb->getMethodParameters());
 }