Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/storage/NuanceSource.php
<?php | <?php | ||||
final class NuanceSource extends NuanceDAO | final class NuanceSource extends NuanceDAO | ||||
implements | implements | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorNgramsInterface { | PhabricatorNgramsInterface { | ||||
protected $name; | protected $name; | ||||
protected $type; | protected $type; | ||||
protected $data; | protected $data = array(); | ||||
protected $mailKey; | protected $mailKey; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
protected $defaultQueuePHID; | protected $defaultQueuePHID; | ||||
protected $isDisabled; | protected $isDisabled; | ||||
private $definition = self::ATTACHABLE; | private $definition = self::ATTACHABLE; | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | public function getDefinition() { | ||||
return $this->assertAttached($this->definition); | return $this->assertAttached($this->definition); | ||||
} | } | ||||
public function attachDefinition(NuanceSourceDefinition $definition) { | public function attachDefinition(NuanceSourceDefinition $definition) { | ||||
$this->definition = $definition; | $this->definition = $definition; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getSourceProperty($key, $default = null) { | |||||
return idx($this->data, $key, $default); | |||||
} | |||||
public function setSourceProperty($key, $value) { | |||||
$this->data[$key] = $value; | |||||
return $this; | |||||
} | |||||
/* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
return new NuanceSourceEditor(); | return new NuanceSourceEditor(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |