Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockLease.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function setAttribute($key, $value) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getAttribute($key, $default = null) { | public function getAttribute($key, $default = null) { | ||||
return idx($this->attributes, $key, $default); | return idx($this->attributes, $key, $default); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(DrydockPHIDTypeLease::TYPECONST); | return PhabricatorPHID::generateNewPHID(DrydockLeasePHIDType::TYPECONST); | ||||
} | } | ||||
public function getInterface($type) { | public function getInterface($type) { | ||||
return $this->getResource()->getInterface($this, $type); | return $this->getResource()->getInterface($this, $type); | ||||
} | } | ||||
public function getResource() { | public function getResource() { | ||||
return $this->assertAttached($this->resource); | return $this->assertAttached($this->resource); | ||||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |