public function serialize(Keyword $keyword, array $options = [])
    {
        $serialized = [
            'id' => $keyword->getUuid(),
            'name' => $keyword->getName(),
        ];

        return $serialized;
    }
public function serialize(Keyword $keyword, array $options = [])
    {
        $serialized = [
            'id' => $keyword->getUuid(),
            'name' => $keyword->getName(),
        ];

        return $serialized;
    }
public function serialize ( Keyword $ keyword , array $ options = [ ] ) { $ serialized = [ 'id' => $ keyword -> getUuid ( ) , 'name' => $ keyword -> getName ( ) , ] ; return $ serialized ; }
Serializes a Keyword entity for the JSON api.

@param Keyword $keyword - the keyword to serialize
@param array   $options - a list of serialization options

@return array - the serialized representation of the keyword
Serializes a Keyword entity for the JSON api .