public function __construct(MetadataStorage $md, DocumentStorage $d) { $this->md = $md; $this->d = $d; }