src/Notification/NotificationSyncer.php
protected function getAttributes(Blueprint\BlueprintInterface $blueprint)
    {
        return [
            'type' => $blueprint::getType(),
            'from_user_id' => ($fromUser = $blueprint->getFromUser()) ? $fromUser->id : null,
            'subject_id' => ($subject = $blueprint->getSubject()) ? $subject->id : null,
            'data' => ($data = $blueprint->getData()) ? json_encode($data) : null
        ];
    }
protected function getAttributes(Blueprint\BlueprintInterface $blueprint)
    {
        return [
            'type' => $blueprint::getType(),
            'from_user_id' => ($fromUser = $blueprint->getFromUser()) ? $fromUser->id : null,
            'subject_id' => ($subject = $blueprint->getSubject()) ? $subject->id : null,
            'data' => ($data = $blueprint->getData()) ? json_encode($data) : null
        ];
    }
protected function getAttributes ( Blueprint \ BlueprintInterface $ blueprint ) { return [ 'type' => $ blueprint :: getType ( ) , 'from_user_id' => ( $ fromUser = $ blueprint -> getFromUser ( ) ) ? $ fromUser -> id : null , 'subject_id' => ( $ subject = $ blueprint -> getSubject ( ) ) ? $ subject -> id : null , 'data' => ( $ data = $ blueprint -> getData ( ) ) ? json_encode ( $ data ) : null ] ; }
Construct an array of attributes to be stored in a notification record in
the database, given a notification blueprint.

@param \Flarum\Notification\Blueprint\BlueprintInterface $blueprint
@return array
Construct an array of attributes to be stored in a notification record in the database given a notification blueprint .