Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/storage/NuanceItem.php
| Show All 17 Lines | final class NuanceItem | ||||
| protected $sourcePHID; | protected $sourcePHID; | ||||
| protected $queuePHID; | protected $queuePHID; | ||||
| protected $itemType; | protected $itemType; | ||||
| protected $itemKey; | protected $itemKey; | ||||
| protected $itemContainerKey; | protected $itemContainerKey; | ||||
| protected $data = array(); | protected $data = array(); | ||||
| protected $mailKey; | protected $mailKey; | ||||
| private $queue = self::ATTACHABLE; | |||||
| private $source = self::ATTACHABLE; | private $source = self::ATTACHABLE; | ||||
| private $implementation = self::ATTACHABLE; | private $implementation = self::ATTACHABLE; | ||||
| public static function initializeNewItem($item_type) { | public static function initializeNewItem($item_type) { | ||||
| // TODO: Validate that the type is valid, and construct and attach it. | // TODO: Validate that the type is valid, and construct and attach it. | ||||
| return id(new NuanceItem()) | return id(new NuanceItem()) | ||||
| ▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | public function getImplementation() { | ||||
| return $this->assertAttached($this->implementation); | return $this->assertAttached($this->implementation); | ||||
| } | } | ||||
| public function attachImplementation(NuanceItemType $type) { | public function attachImplementation(NuanceItemType $type) { | ||||
| $this->implementation = $type; | $this->implementation = $type; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getQueue() { | |||||
| return $this->assertAttached($this->queue); | |||||
| } | |||||
| public function attachQueue(NuanceQueue $queue = null) { | |||||
| $this->queue = $queue; | |||||
| return $this; | |||||
| } | |||||
| /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
| public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
| return new NuanceItemEditor(); | return new NuanceItemEditor(); | ||||
| } | } | ||||
| Show All 15 Lines | |||||