如何在phpStorm中获取类型提示数组到对象函数?

时间:2016-03-09 00:14:02

标签: php laravel object phpstorm type-hinting

我需要访问类型提示

  

SapDefine :: transactionCode() - > ...

现在看到SapDefine的提示:: ...

 class sapDefine extends ServiceProvider {     

  /**
  * @return object[]
  */
  public static function transactionCode() {
    return (object) [
        'RetailSales-DineIn'=>'ZR11',
        'RetailSales-TakeAway'=>'ZR12',
        'RetailReturn-DineIn'=>'ZR21',
        'RetailReturn-TakeAway'=>'ZR22',
        'DeliverySales-E-Coms'=>'ZD13',
        'DeliverySales-M-App'=>'ZD14',
        'DeliverySales-Phone'=>'ZD15',
        'DeliveryReturn-E-Coms'=>'ZD23',
        'DeliveryReturn-M-App'=>'ZD24',
        'DeliveryReturn-Phone'=>'ZD25',
        'EventSales-General'=>'ZE19',
        'EventReturn-General'=>'ZE29'
    ];
  }
}

PS。项目设置在laravel。

0 个答案:

没有答案