You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An additional interface with some getters for the RFC specific field members (chapter 3.1) would be very nice to have.
I have often mistyped on those fields. Some interface which let a developer implement specific methods to be strict about it would be great.
Just of the top of my head...
interface StrictApiProblemInterface
{
publicfunction getType(): ?string
public function getTitle(): string
publicfunction getStatus(): ?int
public function getDetail(): ?string
public functiongetExtensions(): array
}
The text was updated successfully, but these errors were encountered:
hey! why get*() we are not in context of setting properties from a DTO instance.
my thoughts
interface StrictApiProblem
{
publicfunction type(): ?string
public function title(): string
publicfunction status(): ?int
public functiondetail(): ?string
}
interface UnstrictApiProblems
{
// nothing found about approach how to declare multiple problems, see violation or another wording is not described on rfcpublicfunctionproblems(): ?array
}
Feature Request
Summary
An additional interface with some getters for the RFC specific field members (chapter 3.1) would be very nice to have.
I have often mistyped on those fields. Some interface which let a developer implement specific methods to be strict about it would be great.
Just of the top of my head...
The text was updated successfully, but these errors were encountered: