for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Serializer package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\Serializer\Type;
use Ivory\Serializer\Context\ContextInterface;
use Ivory\Serializer\Mapping\TypeMetadataInterface;
/**
* @author GeLo <[email protected]>
class IntegerType implements TypeInterface
{
* {@inheritdoc}
public function convert($data, TypeMetadataInterface $type, ContextInterface $context)
return $context->getVisitor()->visitInteger($data, $type, $context);
}