PHPExiftool\Reader::buildQueryAndExecute PHP Method

buildQueryAndExecute() protected method

Build the command returns an ArrayCollection of FileEntity
protected buildQueryAndExecute ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection
    protected function buildQueryAndExecute()
    {
        $result = '';
        try {
            $result = trim($this->exiftool->executeCommand($this->buildQuery()));
        } catch (RuntimeException $e) {
            /**
             * In case no file found, an exit code 1 is returned
             */
            if (!$this->ignoreDotFile) {
                throw $e;
            }
        }
        if ($result === '') {
            return new ArrayCollection();
        }
        $this->parser->open($result);
        return $this->parser->ParseEntities();
    }