File: //home/cafsindia/lead_cafsinfotech.com/vendor/api-platform/core/src/OpenApi/Model/OAuthFlows.php
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* 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\OpenApi\Model;
final class OAuthFlows
{
use ExtensionTrait;
public function __construct(private ?OAuthFlow $implicit = null, private ?OAuthFlow $password = null, private ?OAuthFlow $clientCredentials = null, private ?OAuthFlow $authorizationCode = null)
{
}
public function getImplicit(): ?OAuthFlow
{
return $this->implicit;
}
public function getPassword(): ?OAuthFlow
{
return $this->password;
}
public function getClientCredentials(): ?OAuthFlow
{
return $this->clientCredentials;
}
public function getAuthorizationCode(): ?OAuthFlow
{
return $this->authorizationCode;
}
public function withImplicit(OAuthFlow $implicit): self
{
$clone = clone $this;
$clone->implicit = $implicit;
return $clone;
}
public function withPassword(OAuthFlow $password): self
{
$clone = clone $this;
$clone->password = $password;
return $clone;
}
public function withClientCredentials(OAuthFlow $clientCredentials): self
{
$clone = clone $this;
$clone->clientCredentials = $clientCredentials;
return $clone;
}
public function withAuthorizationCode(OAuthFlow $authorizationCode): self
{
$clone = clone $this;
$clone->authorizationCode = $authorizationCode;
return $clone;
}
}