<?php
|
namespace App\Models;
|
|
use PDO;
|
use Framework\Model;
|
class FiatModel extends Model {
|
//protected ?string $table = "product";
|
|
|
protected function validate(array $data): void {
|
|
if(empty($data["email"])) {
|
$this->addError("email","email is required");
|
}
|
if(empty($data["number"])) {
|
$this->addError("number","cell number is required");
|
}
|
|
var_dump($this->getErrors());
|
}
|
}
|