コード例 #1
0
ファイル: DeeModel.php プロジェクト: deesoft/yii2-tools
 /**
  * @inheritdoc
  */
 public function __get($name)
 {
     if (in_array($name, $this->attributes()) || !array_key_exists('get' . ucfirst($name), $this->_methods)) {
         return parent::__get($name);
     }
     return Yii::$container->invoke($this->_methods['get' . ucfirst($name)], [$this]);
 }