PHPExiftool\FileEntity::getMetadatas PHP Method

getMetadatas() public method

public getMetadatas ( ) : MetadataBag
return PHPExiftool\Driver\Metadata\MetadataBag
    public function getMetadatas()
    {
        $key = realpath($this->file);
        if ($this->cache->contains($key)) {
            return $this->cache->fetch($key);
        }
        $metadatas = $this->parser->ParseMetadatas();
        $this->cache->save($key, $metadatas);
        return $metadatas;
    }

Usage Example

 /**
  * @covers PHPExiftool\FileEntity::getMetadatas
  */
 public function testGetMetadatas()
 {
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Metadata\\MetadataBag', $this->object->getMetadatas());
     $this->assertEquals(349, count($this->object->getMetadatas()));
 }
All Usage Examples Of PHPExiftool\FileEntity::getMetadatas