public function is($input, $type)
    {
        if (!isset($this->types[$type])) {
            throw new \Exception('Type Not found use one of supported types ( '.implode(' , ', array_keys($this->types)).' )');
        }
        $typeClass = $this->types[$type];

        return (new $typeClass())->sniff($input);
    }
public function is($input, $type)
    {
        if (!isset($this->types[$type])) {
            throw new \Exception('Type Not found use one of supported types ( '.implode(' , ', array_keys($this->types)).' )');
        }
        $typeClass = $this->types[$type];

        return (new $typeClass())->sniff($input);
    }
public function is ( $ input , $ type ) { if ( ! isset ( $ this -> types [ $ type ] ) ) { throw new \ Exception ( 'Type Not found use one of supported types ( ' . implode ( ' , ' , array_keys ( $ this -> types ) ) . ' )' ) ; } $ typeClass = $ this -> types [ $ type ] ; return ( new $ typeClass ( ) ) -> sniff ( $ input ) ; }
test against particular type.

@param mixed $input

@return bool
test against particular type .