mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
gamify reputation added
This commit is contained in:
37
app/Gamify/Points/BookCaseOrangePilled.php
Normal file
37
app/Gamify/Points/BookCaseOrangePilled.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Gamify\Points;
|
||||
|
||||
use QCod\Gamify\PointType;
|
||||
|
||||
class BookCaseOrangePilled extends PointType
|
||||
{
|
||||
public $allowDuplicates = false;
|
||||
|
||||
protected $payee = 'user';
|
||||
|
||||
/**
|
||||
* Number of points
|
||||
* @var int
|
||||
*/
|
||||
public $points = 210;
|
||||
|
||||
/**
|
||||
* Point constructor
|
||||
*
|
||||
* @param $subject
|
||||
*/
|
||||
public function __construct($subject)
|
||||
{
|
||||
$this->subject = $subject;
|
||||
}
|
||||
|
||||
/**
|
||||
* User who will be receive points
|
||||
* @return mixed
|
||||
*/
|
||||
public function payee()
|
||||
{
|
||||
return $this->getSubject()->user;
|
||||
}
|
||||
}
|
||||
35
app/Gamify/Points/LoggedIn.php
Normal file
35
app/Gamify/Points/LoggedIn.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Gamify\Points;
|
||||
|
||||
use QCod\Gamify\PointType;
|
||||
|
||||
class LoggedIn extends PointType
|
||||
{
|
||||
/**
|
||||
* Number of points
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $points = 1;
|
||||
|
||||
/**
|
||||
* Point constructor
|
||||
*
|
||||
* @param $subject
|
||||
*/
|
||||
public function __construct($subject)
|
||||
{
|
||||
$this->subject = $subject;
|
||||
}
|
||||
|
||||
/**
|
||||
* User who will be receive points
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function payee()
|
||||
{
|
||||
return $this->getSubject();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user