for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ExiftoolReader;
use Symfony\Component\Process\Process;
/**
* Class Reader
*/
class Reader
{
* @var Command
private $command;
* Reader constructor.
*
* @param Command $command
public function __construct(Command $command)
$this->command = $command;
}
* @param string $filename
* @return Result
public function read($filename)
$process = new Process($this->command->build($filename));
$process->run();
return new Result($process->getOutput());