PHP Class Tebru\Retrofit\Generation\Handler\BodyHandler

Author: Nate Brunette ([email protected])
Inheritance: implements Tebru\Retrofit\Generation\Handler
Datei anzeigen Open project: tebru/retrofit-php

Public Methods

Method Description
__invoke ( HandlerContext $context ) : void Create body

Private Methods

Method Description
createBodyArray ( HandlerContext $context ) : void Create body as array first
createBodyJson ( HandlerContext $context ) : void Create json body logic
createContext ( HandlerContext $context, string $contextVar ) : void Create serialization context
doCreateBody ( HandlerContext $context ) : void Create the body

Method Details

__invoke() public method

Create body
public __invoke ( HandlerContext $context ) : void
$context Tebru\Retrofit\Generation\HandlerContext
return void