PHP Interface Raml\MessageSchemaInterface

显示文件 Open project: alecsammon/php-raml-parser Interface Usage Examples

Public Methods

Method Description
addBody ( raml\BodyInterface $body ) Add a body
addHeader ( raml\NamedParameter $header ) Add a new header
getBodies ( ) : array Get an array of all bodies
getBodyByType ( string $type ) : raml\BodyInterface Get the body by type
getHeaders ( ) : raml\NamedParameter[] Returns the headers

Method Details

addBody() public method

Add a body
public addBody ( raml\BodyInterface $body )
$body raml\BodyInterface

addHeader() public method

Add a new header
public addHeader ( raml\NamedParameter $header )
$header raml\NamedParameter

getBodies() public method

Get an array of all bodies
public getBodies ( ) : array
return array The array of bodies

getBodyByType() public method

Get the body by type
public getBodyByType ( string $type ) : raml\BodyInterface
$type string
return raml\BodyInterface

getHeaders() public method

Returns the headers
public getHeaders ( ) : raml\NamedParameter[]
return raml\NamedParameter[]