diff --git a/core/lib/Thelia/Core/Event/Newsletter/NewsletterEvent.php b/core/lib/Thelia/Core/Event/Newsletter/NewsletterEvent.php new file mode 100644 index 000000000..9d64d59f5 --- /dev/null +++ b/core/lib/Thelia/Core/Event/Newsletter/NewsletterEvent.php @@ -0,0 +1,117 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Core\Event\Newsletter; +use Thelia\Core\Event\ActionEvent; + + +/** + * Class NewsletterEvent + * @package Thelia\Core\Event\Newsletter + * @author Manuel Raynaud + */ +class NewsletterEvent extends ActionEvent +{ + /** + * @var string email to save + */ + protected $email; + + /** + * @var string first name subscriber + */ + protected $firstname; + + /** + * @var string last name subscriber + */ + protected $lastname; + + function __construct($email) + { + $this->email = $email; + } + + /** + * @param string $email + * + * @return $this + */ + public function setEmail($email) + { + $this->email = $email; + + return $this; + } + + /** + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * @param string $firstname + * + * @return $this + */ + public function setFirstname($firstname) + { + $this->firstname = $firstname; + + return $this; + } + + /** + * @return string + */ + public function getFirstname() + { + return $this->firstname; + } + + /** + * @param string $lastname + * + * @return $this + */ + public function setLastname($lastname) + { + $this->lastname = $lastname; + + return $this; + } + + /** + * @return string + */ + public function getLastname() + { + return $this->lastname; + } + + + +} \ No newline at end of file