src/Funstaff/Tika/Wrapper.php
public function setParameter($name, $value)
    {
        if (!isset($ref)) {
            $ref = new \ReflectionClass($this->config);
        }
        $function = sprintf('set%s', ucfirst($name));
        if (!$ref->hasMethod($function)) {
            throw new \InvalidArgumentException(sprintf(
                'The function "%s" does not exists on configuration',
                $name
            ));
        }
        $this->config->$function($value);

        return $this;
    }
public function setParameter($name, $value)
    {
        if (!isset($ref)) {
            $ref = new \ReflectionClass($this->config);
        }
        $function = sprintf('set%s', ucfirst($name));
        if (!$ref->hasMethod($function)) {
            throw new \InvalidArgumentException(sprintf(
                'The function "%s" does not exists on configuration',
                $name
            ));
        }
        $this->config->$function($value);

        return $this;
    }
public function setParameter ( $ name , $ value ) { if ( ! isset ( $ ref ) ) { $ ref = new \ ReflectionClass ( $ this -> config ) ; } $ function = sprintf ( 'set%s' , ucfirst ( $ name ) ) ; if ( ! $ ref -> hasMethod ( $ function ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The function "%s" does not exists on configuration' , $ name ) ) ; } $ this -> config -> $ function ( $ value ) ; return $ this ; }
Set Parameter
Override default configuration

@param string $name  configuration parameter
@param string $value

@return Wrapper
Set Parameter Override default configuration