PHPExiftool\Reader::append PHP Method

append() public method

Finale result will be the sum of the current reader and all appended ones.
public append ( Reader $reader ) : Reader
$reader Reader The reader to append
return Reader
    public function append(Reader $reader)
    {
        $this->resetResults();
        $this->readers[] = $reader;
        return $this;
    }

Usage Example

 /**
  * @covers PHPExiftool\Reader::append
  * @covers PHPExiftool\Reader::all
  */
 public function testAppend()
 {
     $file1 = self::$tmpDir . '/test.jpg';
     $file2 = self::$tmpDir . '/test2.jpg';
     $file3 = self::$tmpDir . '/dir/CanonRaw.cr2';
     $this->assertEquals(1, count($this->object->files($file1)->all()));
     $reader = $this->getReader();
     $reader->files(array($file2, $file3));
     $this->assertEquals(3, count($this->object->append($reader)->all()));
 }
All Usage Examples Of PHPExiftool\Reader::append