| 1 | <?php |
||
| 8 | abstract class AbstractGiftCardCommand extends AbstractMagentoCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return bool |
||
| 12 | */ |
||
| 13 | public function isEnabled() |
||
| 14 | { |
||
| 15 | return $this->getApplication()->isMagentoEnterprise(); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get the gift card model, optionally loading from an ID |
||
| 20 | * @param string|null $code |
||
| 21 | * @return Giftcardaccount |
||
| 22 | */ |
||
| 23 | public function getGiftcard($code = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Required to avoid "Area code not set" exceptions from Mage framework |
||
| 34 | */ |
||
| 35 | public function setAdminArea() |
||
| 40 | } |
||
| 41 |