for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Queryr\Serialization;
use Serializers\Serializer;
/**
* @access public
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class SerializerFactory {
* @return Serializer
public function newSimpleItemSerializer() {
return new SimpleItemSerializer(
new SimpleFoundationSerializer(),
new SimpleStatementSerializer()
);
}
public function newSimplePropertySerializer() {
return new SimplePropertySerializer(
new SimpleFoundationSerializer()
* @param string[] $propertyMap Maps property id (string) to stable property name
public function newStableItemSerializer( array $propertyMap ) {
return new StableItemSerializer(
new SimpleStatementSerializer(),
$propertyMap
public function newPropertyListSerializer() {
return new PropertyListSerializer();
public function newItemListSerializer() {
return new ItemListSerializer();
public function newItemTypeSerializer() {
return new ItemTypeSerializer();