You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
370 B

7 years ago
<?php
/**
* Created by Error202
* Date: 10.02.2018
*/
namespace core\forms;
use yii\base\Model;
class SubscribeForm extends Model
{
3 years ago
public ?string $email = null;
7 years ago
3 years ago
public function rules(): array
{
7 years ago
return [
['email', 'required'],
['email', 'email'],
];
}
3 years ago
public function attributeLabels(): array
{
7 years ago
return [
'email' => 'E-mail',
];
}
3 years ago
}