2018-03-17 12:59:53 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Sample\Awards;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
use App\Interfaces\Award;
|
2018-03-17 12:59:53 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class SampleAward
|
|
|
|
* @package Modules\Sample\Awards
|
|
|
|
*/
|
2018-03-20 09:50:40 +08:00
|
|
|
class SampleAward extends Award
|
2018-03-17 12:59:53 +08:00
|
|
|
{
|
|
|
|
public $name = 'Sample Award';
|
2018-03-17 13:55:39 +08:00
|
|
|
|
2018-03-18 00:35:34 +08:00
|
|
|
/**
|
|
|
|
* 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
|
2018-03-17 13:55:39 +08:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2018-03-17 12:59:53 +08:00
|
|
|
}
|