Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigKeySchema.php
- This file was added.
<?php | |||||
final class PhabricatorConfigKeySchema | |||||
extends PhabricatorConfigStorageSchema { | |||||
private $columnNames; | |||||
public function setColumnNames(array $column_names) { | |||||
$this->columnNames = $column_names; | |||||
return $this; | |||||
} | |||||
public function getColumnNames() { | |||||
return $this->columnNames; | |||||
} | |||||
protected function getSubschemata() { | |||||
return array(); | |||||
} | |||||
public function compareToSimilarSchema( | |||||
PhabricatorConfigStorageSchema $expect) { | |||||
$issues = array(); | |||||
if ($this->getColumnNames() !== $expect->getColumnNames()) { | |||||
$issues[] = self::ISSUE_KEYCOLUMNS; | |||||
} | |||||
return $issues; | |||||
} | |||||
public function newEmptyClone() { | |||||
$clone = clone $this; | |||||
return $clone; | |||||
} | |||||
} |