/** * DirectoryStorage constructor. * @param string $directory * @param \VersionPress\Database\EntityInfo $entityInfo * @param string $dbPrefix * @param ChangeInfoFactory $changeInfoFactory */ public function __construct($directory, $entityInfo, $dbPrefix, $changeInfoFactory) { parent::__construct($entityInfo, $dbPrefix); $this->directory = $directory; $this->entityInfo = $entityInfo; $this->changeInfoFactory = $changeInfoFactory; }
public function __construct(Storage $parentStorage, EntityInfo $entityInfo, $dbPrefix, $changeInfoFactory, $keyName = 'meta_key', $valueName = 'meta_value') { parent::__construct($entityInfo, $dbPrefix); $this->parentStorage = $parentStorage; $this->changeInfoFactory = $changeInfoFactory; $this->keyName = $keyName; $this->valueName = $valueName; $this->parentReferenceName = "vp_{$entityInfo->parentReference}"; }