PHP Класс Phosphorum\Badges\BadgeBase

Наследование: implements Phosphorum\Badges\BadgeInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$fullNoBountyCategories
$noBountyCategories

Открытые методы

Метод Описание
add ( Users $user, array $extra = null ) Add the badge to the user
getDescription ( ) : string Returns the description of the badge
getFullNoBountyCategories ( ) : array Returns those categories that don't have bounties
getName ( ) : string Returns the name of the badge
getNoBountyCategories ( ) : array Returns those categories that don't have bounties
has ( Users $user ) : boolean Check whether the user already have this badge

Описание методов

add() публичный Метод

Add the badge to the user
public add ( Users $user, array $extra = null )
$user Phosphorum\Models\Users
$extra array

getDescription() публичный Метод

Returns the description of the badge
public getDescription ( ) : string
Результат string

getFullNoBountyCategories() публичный Метод

Returns those categories that don't have bounties
public getFullNoBountyCategories ( ) : array
Результат array

getName() публичный Метод

Returns the name of the badge
public getName ( ) : string
Результат string

getNoBountyCategories() публичный Метод

Returns those categories that don't have bounties
public getNoBountyCategories ( ) : array
Результат array

has() публичный Метод

Check whether the user already have this badge
public has ( Users $user ) : boolean
$user Phosphorum\Models\Users
Результат boolean

Описание свойств

$fullNoBountyCategories защищенное свойство

protected $fullNoBountyCategories

$noBountyCategories защищенное свойство

protected $noBountyCategories