* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Xabbuh\XApi\Serializer; use Xabbuh\XApi\Model\Actor; /** * Serialize and deserialize {@link Actor actors}. * * @author Christian Flothmann */ interface ActorSerializerInterface { /** * Serializes an actor into a JSON encoded string. * * @param Actor $actor The actor to serialize * * @return string The serialized actor */ public function serializeActor(Actor $actor); /** * Parses a serialized actor. * * @param string $data The serialized actor * * @return Actor The parsed actor */ public function deserializeActor($data); }