public function __construct(ERIT_TestModel $model)
 {
     parent::__construct($model);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function performUpdate($user, array $attributes)
 {
     if (isset($attributes['password']) && empty($attributes['password'])) {
         unset($attributes['password']);
     }
     return parent::performUpdate($user, $attributes);
 }
 public function __construct(ItemModel $model, ItemValidator $validator)
 {
     parent::__construct($model, $validator);
 }
 /**
  * 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);
 }
 public function __construct(MyModel $model, MyValidator $validator)
 {
     parent::__construct($model, $validator);
 }