public function __construct(User $user, ResourceModel $resource, $amount) { $this->user = $user; $this->resource = $resource; $this->amount = $amount; }