[PHP-SYMFONY] Debug Symfony version 7, enums ref, array of enums $ref and date assert (#19008)

* [PHP-SYMFONY] Debug for Symfony 7 support & debug enum ref & debug array enum ref & debug date assert

* [PHP-SYMFONY] Debug for Symfony 7 support & debug enum ref & debug array enum ref & debug date assert

* [PHP-SYMFONY] Debug for Symfony 7 support & debug enum ref & debug array enum ref & debug date assert
This commit is contained in:
loicconan
2024-06-30 04:11:26 +02:00
committed by GitHub
parent fa2b5750ce
commit fb17e5699d
12 changed files with 428 additions and 343 deletions

View File

@@ -48,25 +48,25 @@ class ApiResponse
/**
* @var int|null
* @SerializedName("code")
* @Assert\Type("int")
* @Type("int")
*/
*/
#[Assert\Type("int")]
protected ?int $code = null;
/**
* @var string|null
* @SerializedName("type")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $type = null;
/**
* @var string|null
* @SerializedName("message")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $message = null;
/**
@@ -92,15 +92,13 @@ class ApiResponse
return $this->code;
}
/**
* Sets code.
*
* @param int|null $code
*
* @return $this
*/
* Sets code.
*
* @param int|null $code
*
* @return $this
*/
public function setCode(?int $code = null): self
{
$this->code = $code;
@@ -108,6 +106,9 @@ class ApiResponse
return $this;
}
/**
* Gets type.
*
@@ -118,15 +119,13 @@ class ApiResponse
return $this->type;
}
/**
* Sets type.
*
* @param string|null $type
*
* @return $this
*/
* Sets type.
*
* @param string|null $type
*
* @return $this
*/
public function setType(?string $type = null): self
{
$this->type = $type;
@@ -134,6 +133,9 @@ class ApiResponse
return $this;
}
/**
* Gets message.
*
@@ -144,21 +146,22 @@ class ApiResponse
return $this->message;
}
/**
* Sets message.
*
* @param string|null $message
*
* @return $this
*/
* Sets message.
*
* @param string|null $message
*
* @return $this
*/
public function setMessage(?string $message = null): self
{
$this->message = $message;
return $this;
}
}