<?php


namespace OneOfZero\Json\Test\FixtureClasses\Converters;

use OneOfZero\Json\Converters\AbstractObjectConverter;
use OneOfZero\Json\Nodes\AbstractObjectNode;

class GlobalObjectTypeConverter extends AbstractObjectConverter
{
	/**
	 * {@inheritdoc}
	 */
	public function serialize(AbstractObjectNode $node)
	{
		return serialize($node->getInstance());
	}

	/**
	 * {@inheritdoc}
	 */
	public function deserialize(AbstractObjectNode $node)
	{
		return unserialize($node->getSerializedInstance());
	}
}
