Pigo
4 years ago
committed by
GitHub
5 changed files with 56 additions and 0 deletions
@ -0,0 +1,15 @@
|
||||
<?php |
||||
|
||||
namespace yiiunit\framework\web\stubs; |
||||
use yii\db\ActiveRecord; |
||||
use yii\web\NotFoundHttpException; |
||||
|
||||
class ModelBindingStub extends ActiveRecord { |
||||
/** |
||||
* @return self; |
||||
* @throw NotFoundHttpException |
||||
*/ |
||||
public static function build() { |
||||
throw new NotFoundHttpException("Not Found Item."); |
||||
} |
||||
} |
Loading…
Reference in new issue