for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule\User\Password;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Contracts\Encryption\Encrypter;
/**
* Class ResetPasswordFormBuilder
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class ResetPasswordFormBuilder extends FormBuilder
{
* The reset code.
* @var null|string
protected $code = null;
* The user email.
protected $email = null;
* No model.
* @var bool
protected $model = false;
* The form actions.
* @var array
protected $actions = [
'submit',
];
* The form options.
protected $options = [
'redirect' => '/',
* Get the email.
* @return null|string
public function getEmail()
return $this->getFormValue('email', $this->email);
}
* Set the email.
* @param $email
* @return $this
public function setEmail($email)
$this->email = $email;
return $this;
* Get the code.
public function getCode()
return $this->getFormValue('code', $this->code);
* Set the code.
* @param $code
public function setCode($code)
$this->code = $code;