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