-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageHelperConstant.php
executable file
·86 lines (72 loc) · 2.04 KB
/
MessageHelperConstant.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
namespace Messages;
class MessageHelperConstant
{
const PATTERN = "#";
const TYPE_PARAM_NOM = "NOM";
const TYPE_PARAM_PRENOM = "PRENOM";
const TYPE_PARAM_EMAIL = "MAIL";
const TYPE_PARAM_GROUPE = "GROUPE";
const MAIL_USER = "[email protected]";
const MAIL_PASSWORD = "passerSMS";
const MAIL_HOST = "smtp.gmail.com";
private $nom;
private $prenom;
private $mail;
public function __construct($param){
$this->nom = !is_null($param->getParamPattern())? $param->getParamPattern().$param->getParamNom().$param->getParamPattern(): MessageHelperConstant::PATTERN.MessageHelperConstant::TYPE_PARAM_NOM.MessageHelperConstant::PATTERN;
$this->prenom = !is_null($param->getParamPattern())? $param->getParamPattern().$param->getParamPrenom().$param->getParamPattern(): MessageHelperConstant::PATTERN.MessageHelperConstant::TYPE_PARAM_PRENOM.MessageHelperConstant::PATTERN;
$this->mail = !is_null($param->getParamPattern())? $param->getParamPattern().$param->getParamMail().$param->getParamPattern(): MessageHelperConstant::PATTERN.MessageHelperConstant::TYPE_PARAM_EMAIL.MessageHelperConstant::PATTERN;
}
/**
* Get the value of nom
*/
public function getNom()
{
return $this->nom;
}
/**
* Set the value of nom
*
* @return self
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get the value of prenom
*/
public function getPrenom()
{
return $this->prenom;
}
/**
* Set the value of prenom
*
* @return self
*/
public function setPrenom($prenom)
{
$this->prenom = $prenom;
return $this;
}
/**
* Get the value of mail
*/
public function getMail()
{
return $this->mail;
}
/**
* Set the value of mail
*
* @return self
*/
public function setMail($mail)
{
$this->mail = $mail;
return $this;
}
}