src/Doc/Formatter/JsonRpc/JsonRpcFormatter.php
public function formatActionResponseProperty(ResponseProperty $responseProperty)
    {
        $info = [
            'name' => $responseProperty->getName(),
            'type' => $responseProperty->getType(),
            'description' => $responseProperty->getDescription()
        ];

        if ($responseProperty->isObject() || $responseProperty->isCollection()) {
            foreach ($responseProperty->getChild() as $resProperty) {
                $info['properties'][$resProperty->getName()] = $this->formatActionResponseProperty($resProperty);
            }
        }

        return $info;
    }
public function formatActionResponseProperty(ResponseProperty $responseProperty)
    {
        $info = [
            'name' => $responseProperty->getName(),
            'type' => $responseProperty->getType(),
            'description' => $responseProperty->getDescription()
        ];

        if ($responseProperty->isObject() || $responseProperty->isCollection()) {
            foreach ($responseProperty->getChild() as $resProperty) {
                $info['properties'][$resProperty->getName()] = $this->formatActionResponseProperty($resProperty);
            }
        }

        return $info;
    }
public function formatActionResponseProperty ( ResponseProperty $ responseProperty ) { $ info = [ 'name' => $ responseProperty -> getName ( ) , 'type' => $ responseProperty -> getType ( ) , 'description' => $ responseProperty -> getDescription ( ) ] ; if ( $ responseProperty -> isObject ( ) || $ responseProperty -> isCollection ( ) ) { foreach ( $ responseProperty -> getChild ( ) as $ resProperty ) { $ info [ 'properties' ] [ $ resProperty -> getName ( ) ] = $ this -> formatActionResponseProperty ( $ resProperty ) ; } } return $ info ; }
Format action response property

@param ResponseProperty $responseProperty

@return array
Format action response property