Add ability to pass in parameters to an Award class #155

This commit is contained in:
Nabeel Shahzad
2018-03-17 11:35:34 -05:00
parent 26f00ccaae
commit 7feecb507d
8 changed files with 90 additions and 33 deletions

View File

@@ -12,7 +12,14 @@ class SampleAward extends AwardInterface
{
public $name = 'Sample Award';
public function check(): bool
/**
* This is the method that needs to be implemented.
* You have access to $this->user, which holds the current
* user the award is being checked against
* @param null $params Parameters passed in from the UI
* @return bool
*/
public function check($params = null): bool
{
return false;
}