PHP Class Socieboy\Forum\Entities\Conversations\Conversation

Inheritance: extends Socieboy\Forum\Entities\BaseModel
Mostra file Open project: socieboy/forum Class Usage Examples

Protected Properties

Property Type Description
$fillable array
$table string

Public Methods

Method Description
correctAnswer ( ) : mixed Return correct answer
getOwnerNameAttribute ( ) : string Get owner name attribute
getTopicAttribute ( ) : string Return the topic name.
getTopicColorAttribute ( ) : string Return the topic color.
getTopicIconAttribute ( ) : string Return the topic icon.
hasCorrectAnswer ( ) : boolean Return true if the conversation has a correct answer.
replies ( ) : Illuminate\Database\Eloquent\Relations\HasMany Return replies on this conversation.
user ( ) : BelongsTo Return the user owner of this conversation.

Method Details

correctAnswer() public method

Return correct answer
public correctAnswer ( ) : mixed
return mixed

getOwnerNameAttribute() public method

Get owner name attribute
public getOwnerNameAttribute ( ) : string
return string

getTopicAttribute() public method

Return the topic name.
public getTopicAttribute ( ) : string
return string

getTopicColorAttribute() public method

Return the topic color.
public getTopicColorAttribute ( ) : string
return string

getTopicIconAttribute() public method

Return the topic icon.
public getTopicIconAttribute ( ) : string
return string

hasCorrectAnswer() public method

Return true if the conversation has a correct answer.
public hasCorrectAnswer ( ) : boolean
return boolean

replies() public method

Return replies on this conversation.
public replies ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

user() public method

Return the user owner of this conversation.
public user ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$fillable protected_oe property

protected array $fillable
return array

$table protected_oe property

protected string $table
return string