Files
FACULTATE-KNOW_YOUR_FOOD/knowyourfood/models/ContactForm.php
T
2023-05-10 03:28:30 +03:00

28 lines
529 B
PHP

<?php
namespace app\models;
use app\core\Model;
class ContactForm extends Model{
public string $subject = '';
public string $body = '';
public function rules(): array
{
return [
'subject' => [self::RULE_REQUIRED],
'body' => [self::RULE_REQUIRED]
];
}
public function labels(): array{
return [
'subject' => 'Enter your subject',
'body' => 'Enter the body'
];
}
public function send(){
return true;
}
}