TYPO3 CMS  TYPO3_7-6
Person.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  protected $firstname = '';
26 
30  protected $lastname = '';
31 
35  protected $email = '';
36 
40  protected $tags = null;
41 
45  protected $tagsSpecial = null;
46 
52  {
53  $this->setFirstname($firstname);
54  $this->setLastname($lastname);
55  $this->setEmail($email);
56  }
57 
64  public function setFirstname($firstname)
65  {
66  $this->firstname = $firstname;
67  }
68 
74  public function getFirstname()
75  {
76  return $this->firstname;
77  }
78 
85  public function setLastname($lastname)
86  {
87  $this->lastname = $lastname;
88  }
89 
95  public function getLastname()
96  {
97  return $this->lastname;
98  }
99 
105  public function getFullName()
106  {
107  return $this->firstname . ' ' . $this->lastname;
108  }
109 
116  public function setEmail($email)
117  {
118  $this->email = $email;
119  }
120 
126  public function getEmail()
127  {
128  return $this->email;
129  }
130 }
__construct($firstname, $lastname, $email)
Definition: Person.php:51