public function __construct(ERIT_TestModel $model)
 {
     parent::__construct($model);
 }
コード例 #2
0
ファイル: UserRepository.php プロジェクト: anlutro/l4-core
 /**
  * {@inheritdoc}
  */
 protected function performUpdate($user, array $attributes)
 {
     if (isset($attributes['password']) && empty($attributes['password'])) {
         unset($attributes['password']);
     }
     return parent::performUpdate($user, $attributes);
 }
コード例 #3
0
 public function __construct(ItemModel $model, ItemValidator $validator)
 {
     parent::__construct($model, $validator);
 }
コード例 #4
0
 /**
  * Override the constructor. In PHP, you can override type hints in constructors,
  * but not in normal methods. Weird behaviour but we can use this to our
  * advantage.
  */
 public function __construct(ProjectModel $project, ProjectValidator $validator)
 {
     parent::__construct($project, $validator);
 }
コード例 #5
0
 public function __construct(MyModel $model, MyValidator $validator)
 {
     parent::__construct($model, $validator);
 }