| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
/** |
| 4 |
* @license Apache 2.0 |
| 5 |
*/ |
| 6 |
|
| 7 |
namespace OpenApi\Annotations; |
| 8 |
|
| 9 |
use OpenApi\Generator; |
| 10 |
|
| 11 |
/** |
| 12 |
* Contact information for the exposed API. |
| 13 |
* |
| 14 |
* @see [Contact Object](https://spec.openapis.org/oas/v3.1.1.html#components-object) |
| 15 |
* |
| 16 |
* @Annotation |
| 17 |
*/ |
| 18 |
class Contact extends AbstractAnnotation |
| 19 |
{ |
| 20 |
/** |
| 21 |
* The identifying name of the contact person/organization. |
| 22 |
* |
| 23 |
* @var string |
| 24 |
*/ |
| 25 |
public $name = Generator::UNDEFINED; |
| 26 |
|
| 27 |
/** |
| 28 |
* The URL pointing to the contact information. |
| 29 |
* |
| 30 |
* @var string |
| 31 |
*/ |
| 32 |
public $url = Generator::UNDEFINED; |
| 33 |
|
| 34 |
/** |
| 35 |
* The email address of the contact person/organization. |
| 36 |
* |
| 37 |
* @var string |
| 38 |
*/ |
| 39 |
public $email = Generator::UNDEFINED; |
| 40 |
|
| 41 |
/** |
| 42 |
* @inheritdoc |
| 43 |
*/ |
| 44 |
public static $_types = [ |
| 45 |
'name' => 'string', |
| 46 |
'url' => 'string', |
| 47 |
'email' => 'string', |
| 48 |
]; |
| 49 |
|
| 50 |
/** |
| 51 |
* @inheritdoc |
| 52 |
*/ |
| 53 |
public static $_parents = [ |
| 54 |
Info::class, |
| 55 |
]; |
| 56 |
|
| 57 |
/** |
| 58 |
* @inheritdoc |
| 59 |
*/ |
| 60 |
public static $_nested = [ |
| 61 |
Attachable::class => ['attachables'], |
| 62 |
]; |
| 63 |
} |