for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* It's free open-source software released under the MIT License.
*
* @author Anatoly Fenric <[email protected]>
* @copyright Copyright (c) 2018, Anatoly Fenric
* @license https://github.com/sunrise-php/http-router/blob/master/LICENSE
* @link https://github.com/sunrise-php/http-router
*/
namespace Sunrise\Http\Router\OpenApi;
* OAS Contact Object
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#contact-object
class Contact extends AbstractObject
{
* @var string
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-contactname
protected $name;
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-contacturl
protected $url;
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-contactemail
protected $email;
* @param string $name
public function __construct(string $name)
$this->name = $name;
}
* @param string $url
* @return void
public function setUrl(string $url) : void
$this->url = $url;
* @param string $email
public function setEmail(string $email) : void
$this->email = $email;