1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<?php
namespace Gedcomx\GedcomxFile;
/**
* Interface GedcomxEntrySerializer
* @package Gedcomx\src\GedcomxFile
*
* Basic interface for abstracting serialization of an entry.
*/
interface GedcomxEntrySerializer
{
/**
* Serialize the resource to the specified output stream.
*
* @param mixed $resource
*
* @return void
*/
public function serialize($resource);
/**
* Whether the specified content type is a known content type and therefore
* does not need to be written to the entry attributes.
*
* @param string $contentType The content type.
*
* @return boolean Whether the content type is "known".
*/
public function isKnownContentType($contentType);
}