-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerson.php
65 lines (54 loc) · 1.12 KB
/
Person.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
<?php
namespace Acme;
use Baileylo\Ogp\Objects\Profile;
class Person implements Profile
{
/** @var string */
private $first;
/** @var string */
private $last;
/** @var string */
private $gender;
public function __construct($first, $last, $gender)
{
$this->first = $first;
$this->last = $last;
$this->gender = $gender;
}
/**
* A name normally given to an individual by a parent or self-chosen.
*
* @return String|null
*/
public function getFirstName()
{
return $this->first;
}
/**
* A name inherited from a family or marriage and by which the individual is commonly known.
*
* @return String|null
*/
public function getLastName()
{
return $this->last;
}
/**
* Their gender
*
* @return String|null Either female or male
*/
public function getGender()
{
return $this->gender;
}
/**
* A short unique string to identify them.
*
* @return string|null
*/
public function getUsername()
{
return null;
}
}