ParseMetadatas() public method

Parse an Entity associated DOM, returns the metadatas
public ParseMetadatas ( ) : MetadataBag
return PHPExiftool\Driver\Metadata\MetadataBag
コード例 #1
0
ファイル: FileEntity.php プロジェクト: gioid/PHPExiftool
 /**
  *
  * @return 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;
 }