for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\OpenApi;
class Info
{
private $title;
private $description;
private $termsOfService;
private $contact;
private $license;
private $version;
public function __construct(string $title, string $version, string $description = '', string $termsOfService = null, Contact $contact = null, License $license = null)
$this->title = $title;
$this->version = $version;
$this->description = $description;
$this->termsOfService = $termsOfService;
$this->contact = $contact;
$this->license = $license;
}
public function getTitle()
return $this->title;
public function getDescription()
return $this->description;
public function getTermsOfService()
return $this->termsOfService;
public function getContact()
return $this->contact;
public function getLicense()
return $this->license;
public function getVersion()
return $this->version;