# Class EnsureResource

EnsureResource called before dispatching of datapackets. Make sure all parameters are of correct type. where types can be:

  Catapult\BaseResource
  Catapult\EnsureResource

### Direct known subclasses

`Catapult\Ensure`

Namespace: Catapult
Object: Parameter,
Object: DataPacket
Object: BaML input
Object:

polymorphic func_get_args

associative array

Located at resource/Ensure.php

## Methods summary

`public static` | # `Input( data: $data )` Verify the input is of the correct type. Additionally delegate to Collection if needed Verify the input is of the correct type. Additionally delegate to Collection if needed #### Parameters $data as listed above
`public static` | # `Output( $data )` Output version same thing should verify if its a DataPacket before sending back Output version same thing should verify if its a DataPacket before sending back #### Parameters $data [array | multidimensional array]
`public static` | # `Strict( & $data, $key )` If a parameter is not found in the set throw error. Example: If a parameter is not found in the set throw error. Example: Ensure::Strict($this, "id") #### Parameters $data set of schema data $key key that 'NEEDS' to exist
`public static` | # `InputTwo( $args )` handles a two arity where the split becomes handles a two arity where the split becomes [0] => array 1 [1] => array 2 Input should not be insured yet..