File "RepresentationSerializerInterface.php"
Full Path: /var/www/drive/sentry/sentry/scripts/RepresentationSerializerInterface.php
File size: 709 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Sentry\Serializer;
/**
* Serializes a value into a representation that should reasonably suggest
* both the type and value, and be serializable into JSON.
*/
interface RepresentationSerializerInterface
{
/**
* Serialize an object (recursively) into something safe to be sent as a stacktrace frame argument.
*
* The main difference with the {@link SerializerInterface} is the fact that even basic types
* (bool, int, float) are converted into strings, to avoid misrepresentations on the server side.
*
* @param mixed $value
*
* @return mixed[]|string|null
*/
public function representationSerialize($value);
}