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 Tag Object
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#tag-object
class Tag extends AbstractObject
{
* @var string
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-tagname
protected $name;
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-tagdescription
protected $description;
* @var ExternalDocumentation
* @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-tagexternaldocs
protected $externalDocs;
* @param string $name
public function __construct(string $name)
$this->name = $name;
}
* @param string $description
* @return void
public function setDescription(string $description) : void
$this->description = $description;
* @param ExternalDocumentation $externalDocs
public function setExternalDocs(ExternalDocumentation $externalDocs) : void
$this->externalDocs = $externalDocs;