Add ability to pass in parameters to an Award class #155
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user