plugin/exo/Serializer/Item/HintSerializer.php
public function serialize(Hint $hint, array $options = [])
    {
        $serialized = [
            'id' => $hint->getUuid(),
            'penalty' => $hint->getPenalty(),
        ];

        if (in_array(Transfer::INCLUDE_SOLUTIONS, $options)) {
            $serialized['value'] = $hint->getData();
        }

        return $serialized;
    }
public function serialize(Hint $hint, array $options = [])
    {
        $serialized = [
            'id' => $hint->getUuid(),
            'penalty' => $hint->getPenalty(),
        ];

        if (in_array(Transfer::INCLUDE_SOLUTIONS, $options)) {
            $serialized['value'] = $hint->getData();
        }

        return $serialized;
    }
public function serialize ( Hint $ hint , array $ options = [ ] ) { $ serialized = [ 'id' => $ hint -> getUuid ( ) , 'penalty' => $ hint -> getPenalty ( ) , ] ; if ( in_array ( Transfer :: INCLUDE_SOLUTIONS , $ options ) ) { $ serialized [ 'value' ] = $ hint -> getData ( ) ; } return $ serialized ; }
Converts a Hint into a JSON-encodable structure.

@param Hint  $hint
@param array $options

@return array
Converts a Hint into a JSON - encodable structure .