-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.php
68 lines (59 loc) · 1.68 KB
/
Contact.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
<?php
namespace Zerotoprod\DataModelOpenapi30;
use Zerotoprod\DataModel\Describe;
use Zerotoprod\DataModelOpenapi30\Helpers\DataModel;
/**
* Contact information for the exposed API.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
*/
class Contact
{
use DataModel;
/**
* The identifying name of the contact person/organization.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
* @see $name
*/
public const name = 'name';
/**
* The identifying name of the contact person/organization.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
*/
#[Describe(['nullable'])]
public ?string $name;
/**
* The URL for the contact information.
* This _MUST_ be in the form of a URL.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
* @see $url
*/
public const url = 'url';
/**
* The URL for the contact information.
* This _MUST_ be in the form of a URL.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
*/
#[Describe(['nullable'])]
public ?string $url;
/**
* The email address of the contact person/organization.
* This _MUST_ be in the form of an email address.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
* @see $email
*/
public const email = 'email';
/**
* The email address of the contact person/organization.
* This _MUST_ be in the form of an email address.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#contact-object
*/
#[Describe(['nullable'])]
public ?string $email;
}