# Class BaML

  Catapult\BaMLResource
  Catapult\BaML

Final
Namespace: Catapult
Class:

BaML

main class to access BaML features should be extended by each verb and provide logic

Located at baml/BaML.php

## Methods summary

`public` | # `__construct( data: $type = 'Response' )` keep track of BaML sequentialy * keep track of BaML sequentialy * #### Parameters $type string when set use parsing otherwise treat as creation #### Overrides `Catapult\BaMLResource::__construct`
`public` | # `generateParameters( )`
`public` | # `generateData( $type )` initial add of container to data initial add of container to data
`public` | # `hasCurrentVerb( )` do we have a verb? do we have a verb?
`public` | # `get( )` public API method. Get the data in the BaML container #### Overrides `Catapult\BaMLResource::get`
`public` | # `getVerbs( )` get all the verbs in this check if its a flat array or has multiple layers get all the verbs in this check if its a flat array or has multiple layers
`public` | # `addLine( line $line )` parse a line and add to document parse a line and add to document #### Parameters $line
`public` | # `getCurrentVerb( )` get the current verb. get the current verb.
`public` | # `getCurrentText( )` get the current text get the current text
`public` | # `setCurrentVerb( object & $object )` set current verb set current verb #### Parameters $object
`public` | # `setCurrentText( & $object )` set the current text for baml set the current text for baml
`public` | # `setVerb( $params )` sets a verb. Generate a new class from BaMLVerb if we have a current verb we cannot add a new one sets a verb. Generate a new class from BaMLVerb if we have a current verb we cannot add a new one
`public` | # `setText( $params )`
`public` | # `setAttribute( $params )` for setting an attribute you can also use the text as the second parameter
`public` | # `setContainerType( type: $type )` set the container's type. it has to be in the first element of data set the container's type. it has to be in the first element of data #### Parameters $type (Request|Response)
`public` | # `trySet( $object )` try setting an object in the namespace if we cant throw try setting an object in the namespace if we cant throw
`public` | # `__call( $function, $args )` do this by verifying class currentVerb is always loaded first do this by verifying class currentVerb is always loaded first

### Methods inherited from Catapult\BaMLResource

`__toString()`, `addData()`, `generate()`, `getAsStream()`, `parse()`, `register()`

## Properties summary

`public` | $parameters | # ``

### Properties inherited from Catapult\BaMLResource

`$data`, `$fileHandler`, `$options`, `$parser`