Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockAuthorization.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | final class DrydockAuthorization extends DrydockDAO | ||||
} | } | ||||
public function getObject() { | public function getObject() { | ||||
return $this->assertAttached($this->object); | return $this->assertAttached($this->object); | ||||
} | } | ||||
public static function getBlueprintStateIcon($state) { | public static function getBlueprintStateIcon($state) { | ||||
$map = array( | $map = array( | ||||
self::BLUEPRINTAUTH_REQUESTED => 'fa-exclamation-circle indigo', | self::BLUEPRINTAUTH_REQUESTED => 'fa-exclamation-circle pink', | ||||
self::BLUEPRINTAUTH_AUTHORIZED => 'fa-check-circle green', | self::BLUEPRINTAUTH_AUTHORIZED => 'fa-check-circle green', | ||||
self::BLUEPRINTAUTH_DECLINED => 'fa-times red', | self::BLUEPRINTAUTH_DECLINED => 'fa-times red', | ||||
); | ); | ||||
return idx($map, $state, null); | return idx($map, $state, null); | ||||
} | } | ||||
public static function getBlueprintStateName($state) { | public static function getBlueprintStateName($state) { | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |