for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Apie\OpenapiSchema\Spec;
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
use Apie\OpenapiSchema\Exceptions\OAuthRequiresAuthorizationUrl;
use Apie\OpenapiSchema\Exceptions\OAuthRequiresTokenUrl;
use Apie\ValueObjects\ValueObjectInterface;
/**
* @see https://swagger.io/specification/#oauth-flows-object
*/
class OAuthFlows implements ValueObjectInterface
{
use CompositeValueObjectWithExtension;
Apie\OpenapiSchema\Conce...alueObjectWithExtension
$name
Apie\OpenapiSchema\Spec\OAuthFlows
* @var OAuthFlow|null
private $implicit;
private $password;
private $clientCredentials;
private $authorizationCode;
private function __construct()
}
protected function validateProperties(): void
if ($this->implicit && null === $this->implicit->getAuthorizationUrl()) {
throw new OAuthRequiresAuthorizationUrl();
if ($this->password && null === $this->password->getTokenUrl()) {
throw new OAuthRequiresTokenUrl();
if ($this->clientCredentials && $this->clientCredentials->getTokenUrl()) {
if ($this->authorizationCode) {
if (null === $this->authorizationCode->getAuthorizationUrl()) {
if (null === $this->authorizationCode->getTokenUrl()) {