2014-10-06 14:19:08 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhortuneCartImplementation {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load implementations for a given set of carts.
|
|
|
|
*
|
|
|
|
* Note that this method should return a map using the original keys to
|
|
|
|
* identify which implementation corresponds to which cart.
|
|
|
|
*/
|
|
|
|
abstract public function loadImplementationsForCarts(
|
|
|
|
PhabricatorUser $viewer,
|
|
|
|
array $carts);
|
|
|
|
|
2014-10-08 05:32:01 -07:00
|
|
|
abstract public function getName();
|
|
|
|
|
2014-10-06 14:19:08 -07:00
|
|
|
abstract public function getCancelURI(PhortuneCart $cart);
|
|
|
|
abstract public function getDoneURI(PhortuneCart $cart);
|
|
|
|
|
|
|
|
abstract public function willCreateCart(
|
|
|
|
PhabricatorUser $viewer,
|
|
|
|
PhortuneCart $cart);
|
|
|
|
|
|
|
|
}
|