Skip to content

Commit b68a21f

Browse files
author
Ash Smith
committed
Ensure implementations have getParams/setParams
1 parent d3a9668 commit b68a21f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lib/internal/Magento/Framework/App/Console/Request.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ public function getParam($key, $defaultValue = null)
8888
return $defaultValue;
8989
}
9090

91+
/**
92+
* Retrieve all params as array
93+
*
94+
* @return array
95+
*/
96+
public function getParams()
97+
{
98+
return $this->params;
99+
}
100+
101+
/**
102+
* Set params from key value array
103+
*
104+
* @param array $data
105+
* @return $this
106+
*/
107+
public function setParams(array $data)
108+
{
109+
$this->params = $data;
110+
return $this;
111+
}
112+
91113
/**
92114
* Stub to satisfy RequestInterface
93115
*

0 commit comments

Comments
 (0)