| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php declare(strict_types=1);
- // phpcs:ignoreFile (this file uses "\r\n" linebreaks on purpose)
- namespace OpenApiFixures;
- use Exception;
- use OpenApi\Annotations as OA;
- use OpenApi\Logger;
- use OpenApi\Logger as OpenApiLogger;
- /**
- * @OA\Info(title="Fixture for ClassPropertiesTest", version="test")
- * @OA\Schema()
- */
- class Customer
- {
- /**
- * The first name of the customer.
- *
- * @var string
- * @example John
- * @OA\Property()
- */
- public $firstname;
- /**
- * @var null|string The second name of the customer.
- * @example Allan
- * @OA\Property()
- */
- public $secondname;
- /**
- * The third name of the customer.
- *
- * @var string|null
- * @example Peter
- * @OA\Property()
- */
- public $thirdname;
- /**
- * The unknown name of the customer.
- *
- * @var unknown|null
- * @example Unknown
- * @OA\Property()
- */
- public $fourthname;
- /**
- * @var string The lastname of the customer.
- * @OA\Property()
- */
- public $lastname;
- /**
- * @OA\Property()
- * @var string[]
- */
- public $tags;
- /**
- * @OA\Property()
- * @var Customer
- */
- public $submittedBy;
- /**
- * @OA\Property()
- * @var Customer[]
- */
- public $friends;
- /**
- * @OA\Property()
- * @var Customer|null
- */
- public $bestFriend;
- /**
- * for ContextTest
- */
- public function testResolvingFullyQualifiedNames()
- {
- $test = new OpenApiLogger();
- $test2 = new Logger();
- $test3 = new OA\Contact();
- throw new Exception();
- }
- }
|