Skip to content

Commit

Permalink
Add doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Mar 6, 2015
1 parent f55e0d9 commit cf32248
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Logic/Logic.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ public function __construct($api, $content, $session, $data) {
abstract public function go();

/**
*
* Sets the parameters on this Logic object, a protected array accessible
* internally by all Logic objects.
*
* @param array|mixed $params An array of parameters, or a single value to
* push onto the existing params
*
* @return array Newly-set parameters array
*/
public function setParams($params) {
if(is_array($params)) {
Expand All @@ -45,6 +51,7 @@ public function setParams($params) {
}

return $this->params;
}return $this->params;
}

}#

0 comments on commit cf32248

Please sign in to comment.