public function setToolPath($path)
    {
        if (!file_exists($path)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Given path (%1$s) to the exiftool binary is invalid',
                    $path
                )
            );
        }

        $this->toolPath = $path;

        return $this;
    }
public function setToolPath($path)
    {
        if (!file_exists($path)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Given path (%1$s) to the exiftool binary is invalid',
                    $path
                )
            );
        }

        $this->toolPath = $path;

        return $this;
    }
public function setToolPath ( $ path ) { if ( ! file_exists ( $ path ) ) { throw new InvalidArgumentException ( sprintf ( 'Given path (%1$s) to the exiftool binary is invalid' , $ path ) ) ; } $ this -> toolPath = $ path ; return $ this ; }
Setter for the exiftool binary path

@param string $path The path to the exiftool binary
@return \PHPExif\Adapter\Exiftool Current instance
@throws \InvalidArgumentException When path is invalid
Setter for the exiftool binary path