blob: e957719dc665aa8fa01408c7ebcdddf424e90cf5 (
plain)
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
|
<?php
namespace gipfl\OpenRpc;
use JsonSerializable;
/**
* Contact information for the exposed API
*/
class Contact implements JsonSerializable
{
use SimpleJsonSerializer;
/**
* The identifying name of the contact person/organization
*
* @var string|null
*/
public $name;
/**
* The URL pointing to the contact information. MUST be in the format of a
* URL.
*
* @var string|null
*/
public $url;
/**
* The email address of the contact person/organization. MUST be in the
* format of an email address.
*
* @var string|null
*/
public $email;
/**
* Contact constructor.
* @param string|null $name
* @param string|null $url
* @param string|null $email
*/
public function __construct($name = null, $url = null, $email = null)
{
$this->name = $name;
$this->url = $url;
$this->email = $email;
}
}
|