private function assertEscapeType($type)
    {
        if (! in_array($type, array_keys($this->escapeTypes), true)) {
            throw new Exception\InvalidEscaperException('Invalid escape type provided');
        }
    }
private function assertEscapeType($type)
    {
        if (! in_array($type, array_keys($this->escapeTypes), true)) {
            throw new Exception\InvalidEscaperException('Invalid escape type provided');
        }
    }
private function assertEscapeType ( $ type ) { if ( ! in_array ( $ type , array_keys ( $ this -> escapeTypes ) , true ) ) { throw new Exception \ InvalidEscaperException ( 'Invalid escape type provided' ) ; } }
Assert that a given escape type is valid.

@param string $type
@throws Exceptin\InvalidEscaperException
Assert that a given escape type is valid .