| 1 | <?php declare(strict_types=1); |
||
| 18 | class Json extends StandardAbstract |
||
| 19 | { |
||
| 20 | const SYNTAX_FORMAT = 'Json'; |
||
| 21 | |||
| 22 | protected $mandatoryFields = ['version', 'title', 'items']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Document $document |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 2 | public function canHandle(Document $document) : bool |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return FormatterInterface |
||
| 35 | */ |
||
| 36 | public function getFormatter() : FormatterInterface |
||
| 40 | } |
||
| 41 |