Skip to content

Commit

Permalink
Add additional method metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed May 24, 2024
1 parent 5455dc5 commit cb443f6
Showing 1 changed file with 127 additions and 0 deletions.
127 changes: 127 additions & 0 deletions src/Metadata/Model/MethodMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@ final class MethodMeta
*/
private $action;

/**
* @var string|null
*/
private $operationName;

/**
* @var string|null
*/
private $location;

/**
* @var string|null
*/
private $targetNamespace;

/**
* @var string|null
*/
Expand All @@ -43,11 +53,31 @@ final class MethodMeta
*/
private $inputBindingUsage;

/**
* @var string|null
*/
private $inputNamespace;

/**
* @var string|null
*/
private $inputEncodingStyle;

/**
* @var string|null
*/
private $outputBindingUsage;

/**
* @var string|null
*/
private $outputNamespace;

/**
* @var string|null
*/
private $outputEncodingStyle;

/**
* @var bool|null
*/
Expand Down Expand Up @@ -85,6 +115,22 @@ public function withAction(?string $action): self
return $new;
}

/**
* @return Option<string>
*/
public function operationName(): Option
{
return from_nullable($this->operationName);
}

public function withOperationName(?string $operationName): self
{
$new = clone $this;
$new->operationName = $operationName;

return $new;
}

/**
* @return Option<string>
*/
Expand All @@ -101,6 +147,22 @@ public function withlocation(?string $location): self
return $new;
}

/**
* @return Option<string>
*/
public function targetNamespace(): Option
{
return from_nullable($this->targetNamespace);
}

public function withTargetNamespace(?string $targetNamespace): self
{
$new = clone $this;
$new->targetNamespace = $targetNamespace;

return $new;
}

/**
* @return Option<string>
*/
Expand Down Expand Up @@ -181,6 +243,39 @@ public function withInputBindingUsage(?string $inputBindingUsage): self
return $new;
}

/**
* @return Option<string>
*/
public function inputNamespace(): Option
{
return from_nullable($this->inputNamespace);
}

public function withInputNamespace(?string $inputNamespace): self
{
$new = clone $this;
$new->inputNamespace = $inputNamespace;

return $new;
}

/**
* @return Option<string>
*/
public function inputEncodingStyle(): Option
{
return from_nullable($this->inputEncodingStyle);
}

public function withInputEncodingStyle(?string $inputEncodingStyle): self
{
$new = clone $this;
$new->inputEncodingStyle = $inputEncodingStyle;

return $new;
}


/**
* @return Option<string>
*/
Expand All @@ -196,4 +291,36 @@ public function withOutputBindingUsage(?string $outputBindingUsage): self

return $new;
}

/**
* @return Option<string>
*/
public function outputNamespace(): Option
{
return from_nullable($this->outputNamespace);
}

public function withOutputNamespace(?string $outputNamespace): self
{
$new = clone $this;
$new->outputNamespace = $outputNamespace;

return $new;
}

/**
* @return Option<string>
*/
public function outputEncodingStyle(): Option
{
return from_nullable($this->outputEncodingStyle);
}

public function withOutputEncodingStyle(?string $outputEncodingStyle): self
{
$new = clone $this;
$new->outputEncodingStyle = $outputEncodingStyle;

return $new;
}
}

0 comments on commit cb443f6

Please sign in to comment.