PHP Class Flarum\Api\Serializer\DiscussionBasicSerializer

Inheritance: extends AbstractSerializer
Show file Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$type

Protected Methods

Method Description
getDefaultAttributes ( Discussion $discussion )
lastPost ( $discussion ) : Relationship
lastUser ( $discussion ) : Relationship
posts ( $discussion ) : Relationship
relevantPosts ( $discussion ) : Relationship
startPost ( $discussion ) : Relationship
startUser ( $discussion ) : Relationship

Method Details

getDefaultAttributes() protected method

protected getDefaultAttributes ( Discussion $discussion )
$discussion Flarum\Core\Discussion

lastPost() protected method

protected lastPost ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

lastUser() protected method

protected lastUser ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

posts() protected method

protected posts ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

relevantPosts() protected method

protected relevantPosts ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

startPost() protected method

protected startPost ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

startUser() protected method

protected startUser ( $discussion ) : Relationship
return Tobscure\JsonApi\Relationship

Property Details

$type protected property

protected $type