mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the NelmioApiDocBundle.
|
||
|
*
|
||
|
* (c) Nelmio <hello@nelm.io>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace Nelmio\ApiDocBundle\Parser;
|
||
|
|
||
|
/**
|
||
|
* This is the interface parsers must implement in order to register a second parsing pass after the initial structure
|
||
|
* is populated..
|
||
|
*/
|
||
|
interface PostParserInterface
|
||
|
{
|
||
|
/**
|
||
|
* Reparses an object for additional documentation details after it has already been parsed once, to allow
|
||
|
* parsers to extend information initially documented by other parsers.
|
||
|
*
|
||
|
* Returns an array of class property metadata where each item is a key (the property name) and
|
||
|
* an array of data with the following keys:
|
||
|
* - dataType string
|
||
|
* - required boolean
|
||
|
* - description string
|
||
|
* - readonly boolean
|
||
|
* - children (optional) array of nested property names mapped to arrays
|
||
|
* in the format described here
|
||
|
*
|
||
|
* @param string $item The string type of input to parse.
|
||
|
* @param array $parameters The previously-parsed parameters array.
|
||
|
* @return array
|
||
|
*/
|
||
|
public function postParse(array $item, array $parameters);
|
||
|
}
|