for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the feed-io package.
*
* (c) Alexandre Debril <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FeedIo\Standard;
use FeedIo\Formatter\JsonFormatter;
use FeedIo\Reader\Document;
use FeedIo\StandardAbstract;
class Json extends StandardAbstract
{
const SYNTAX_FORMAT = 'Json';
protected $mandatoryFields = ['version', 'title', 'items'];
/**
* @param Document $document
* @return bool
public function canHandle(Document $document)
return $document->isJson();
}
* @return JsonFormatter
public function getFormatter()
return new JsonFormatter();