i want to integrate my function in y new class but am confused how to call it from inside
i defined a variable public $error=[]; and tried to use get and set but