示例#1
0
 /**
  * 2016-08-27
  * @return S
  */
 private function s()
 {
     return dfc($this, function () {
         return S::convention($this);
     });
 }
示例#2
0
文件: Method.php 项目: mage2pro/core
 /**
  * 2016-08-06
  * 2016-09-04
  * Используемая конструкция реально работает: https://3v4l.org/Qb0uZ
  * @used-by \Df\Payment\Method::getTitle()
  * @return string
  */
 public static function titleBackendS()
 {
     return dfcf(function ($class) {
         return Settings::convention($class, 'title_backend', null, function () use($class) {
             return df_class_second($class);
         });
     }, [static::class]);
 }
示例#3
0
 /**
  * 2016-08-27
  * @return S
  */
 protected function s()
 {
     return dfc($this, function () {
         return S::convention($this);
     });
 }