plugin/claco-form/Serializer/EntryUserSerializer.php
public function serialize(EntryUser $entryUser, array $options = [])
    {
        $serialized = [
            'id' => $entryUser->getUuid(),
            'autoId' => $entryUser->getId(),
            'entry' => [
                'id' => $entryUser->getEntry()->getUuid(),
            ],
            'user' => [
                'id' => $entryUser->getUser()->getUuid(),
            ],
            'shared' => $entryUser->isShared(),
            'notifyEdition' => $entryUser->getNotifyEdition(),
            'notifyComment' => $entryUser->getNotifyComment(),
            'notifyVote' => $entryUser->getNotifyVote(),
        ];

        return $serialized;
    }
public function serialize(EntryUser $entryUser, array $options = [])
    {
        $serialized = [
            'id' => $entryUser->getUuid(),
            'autoId' => $entryUser->getId(),
            'entry' => [
                'id' => $entryUser->getEntry()->getUuid(),
            ],
            'user' => [
                'id' => $entryUser->getUser()->getUuid(),
            ],
            'shared' => $entryUser->isShared(),
            'notifyEdition' => $entryUser->getNotifyEdition(),
            'notifyComment' => $entryUser->getNotifyComment(),
            'notifyVote' => $entryUser->getNotifyVote(),
        ];

        return $serialized;
    }
public function serialize ( EntryUser $ entryUser , array $ options = [ ] ) { $ serialized = [ 'id' => $ entryUser -> getUuid ( ) , 'autoId' => $ entryUser -> getId ( ) , 'entry' => [ 'id' => $ entryUser -> getEntry ( ) -> getUuid ( ) , ] , 'user' => [ 'id' => $ entryUser -> getUser ( ) -> getUuid ( ) , ] , 'shared' => $ entryUser -> isShared ( ) , 'notifyEdition' => $ entryUser -> getNotifyEdition ( ) , 'notifyComment' => $ entryUser -> getNotifyComment ( ) , 'notifyVote' => $ entryUser -> getNotifyVote ( ) , ] ; return $ serialized ; }
Serializes an EntryUser entity for the JSON api.

@param EntryUser $entryUser - the entry user to serialize
@param array     $options   - a list of serialization options

@return array - the serialized representation of the entry user
Serializes an EntryUser entity for the JSON api .