PHP Class Flarum\Api\Serializer\PostBasicSerializer

Inheritance: extends AbstractSerializer
显示文件 Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$type

Protected Methods

Method Description
discussion ( $post ) : Relationship
getDefaultAttributes ( Post $post )
user ( $post ) : Relationship

Method Details

discussion() protected method

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

getDefaultAttributes() protected method

protected getDefaultAttributes ( Post $post )
$post Flarum\Core\Post

user() protected method

protected user ( $post ) : Relationship
return Tobscure\JsonApi\Relationship

Property Details

$type protected_oe property

protected $type