The property email does not seem to exist. Did you mean _email?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
28
throw new InvalidConfigException('The email attribute can not be empty and must be set trough configuration array.');
29
}
30
}
31
32
/**
33
* Setter method for e-mail.
34
*
35
* If no valid email is provided, not value is set.
36
*
37
* @param string $email The e-mail which should be used for the mailto link.
38
*/
39
public function setEmail($email)
40
{
41
$validator = new EmailValidator();
42
if ($validator->validate($email)) {
43
$this->_email = $email;
44
} else {
45
$this->_email = false;
46
}
47
}
48
49
/**
50
* Getter method for the e-mail.
51
*
52
* @return string|boolean Returns the e-mail from the setter method, if mail is not valid false is returned.
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.