/**
* Construct a new FileEntity
*
* @param string $file
* @param \DOMDocument $dom
* @param RDFParser $parser
* @return FileEntity
*/
public function __construct($file, \DOMDocument $dom, RDFParser $parser)
{
$this->dom = $dom;
$this->file = $file;
$this->cache = new ArrayCache();
$this->parser = $parser->open($dom->saveXML());
return $this;
}