Skip to content

Instantly share code, notes, and snippets.

@lukeholder
Created August 18, 2015 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeholder/ba5578b0bd18595aba85 to your computer and use it in GitHub Desktop.
Save lukeholder/ba5578b0bd18595aba85 to your computer and use it in GitHub Desktop.

Code Hint Helpers for PHP Storm

Add this code block into the phpdoc of Craft's WebApp.php class.

This will enable PHP Storm IDE features for services like craft()->market_product->method()

 * @property Market_AddressService         $market_address
 * @property Market_CartService            $market_cart
 * @property Market_CountryService         $market_country
 * @property Market_CustomerService        $market_customer
 * @property Market_DiscountService        $market_discount
 * @property Market_EmailService           $market_email
 * @property Market_GatewayService         $market_gateway
 * @property Market_LineItemService        $market_lineItem
 * @property Market_OrderAdjustmentService $market_orderAdjustment
 * @property Market_OrderHistoryService    $market_orderHistory
 * @property Market_OrderService           $market_order
 * @property Market_OrderSettingsService   $market_orderSettings
 * @property Market_OrderStatusService     $market_orderStatus
 * @property Market_PaymentMethodService   $market_paymentMethod
 * @property Market_PaymentService         $market_payment
 * @property Market_ProductService         $market_product
 * @property Market_ProductTypeService     $market_productType
 * @property Market_SaleService            $market_sale
 * @property Market_SeedService            $market_seed
 * @property Market_SettingsService        $market_settings
 * @property Market_ShippingMethodService  $market_shippingMethod
 * @property Market_ShippingRuleService    $market_shippingRule
 * @property Market_StateService           $market_state
 * @property Market_TaxCategoryService     $market_taxCategory
 * @property Market_TaxRateService         $market_taxRate
 * @property Market_TaxZoneService         $market_taxZone
 * @property Market_TransactionService     $market_transaction
 * @property Market_VariantService         $market_variant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment