Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/phortune/FundBackerProduct.php
Show All 15 Lines | final class FundBackerProduct extends PhortuneProductImplementation { | ||||
} | } | ||||
public function getRef() { | public function getRef() { | ||||
return $this->getInitiativePHID(); | return $this->getInitiativePHID(); | ||||
} | } | ||||
public function getName(PhortuneProduct $product) { | public function getName(PhortuneProduct $product) { | ||||
$initiative = $this->getInitiative(); | $initiative = $this->getInitiative(); | ||||
if (!$initiative) { | |||||
return pht('Fund <Unknown Initiative>'); | |||||
} else { | |||||
return pht( | return pht( | ||||
'Fund %s %s', | 'Fund %s %s', | ||||
$initiative->getMonogram(), | $initiative->getMonogram(), | ||||
$initiative->getName()); | $initiative->getName()); | ||||
} | } | ||||
} | |||||
public function getPriceAsCurrency(PhortuneProduct $product) { | public function getPriceAsCurrency(PhortuneProduct $product) { | ||||
return PhortuneCurrency::newEmptyCurrency(); | return PhortuneCurrency::newEmptyCurrency(); | ||||
} | } | ||||
public function setInitiativePHID($initiative_phid) { | public function setInitiativePHID($initiative_phid) { | ||||
$this->initiativePHID = $initiative_phid; | $this->initiativePHID = $initiative_phid; | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |