[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,57 +48,57 @@ class User
/**
* @var int|null
* @SerializedName("id")
* @Assert\Type("int")
* @Type("int")
*/
*/
#[Assert\Type("int")]
protected ?int $id = null;
/**
* @var string|null
* @SerializedName("username")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $username = null;
/**
* @var string|null
* @SerializedName("firstName")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $firstName = null;
/**
* @var string|null
* @SerializedName("lastName")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $lastName = null;
/**
* @var string|null
* @SerializedName("email")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $email = null;
/**
* @var string|null
* @SerializedName("password")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $password = null;
/**
* @var string|null
* @SerializedName("phone")
* @Assert\Type("string")
* @Type("string")
*/
*/
#[Assert\Type("string")]
protected ?string $phone = null;
/**
@@ -106,9 +106,9 @@ class User
*
* @var int|null
* @SerializedName("userStatus")
* @Assert\Type("int")
* @Type("int")
*/
*/
#[Assert\Type("int")]
protected ?int $userStatus = null;
/**
@@ -139,15 +139,13 @@ class User
return $this->id;
}
/**
* Sets id.
*
* @param int|null $id
*
* @return $this
*/
* Sets id.
*
* @param int|null $id
*
* @return $this
*/
public function setId(?int $id = null): self
{
$this->id = $id;
@@ -155,6 +153,9 @@ class User
return $this;
}
/**
* Gets username.
*
@@ -165,15 +166,13 @@ class User
return $this->username;
}
/**
* Sets username.
*
* @param string|null $username
*
* @return $this
*/
* Sets username.
*
* @param string|null $username
*
* @return $this
*/
public function setUsername(?string $username = null): self
{
$this->username = $username;
@@ -181,6 +180,9 @@ class User
return $this;
}
/**
* Gets firstName.
*
@@ -191,15 +193,13 @@ class User
return $this->firstName;
}
/**
* Sets firstName.
*
* @param string|null $firstName
*
* @return $this
*/
* Sets firstName.
*
* @param string|null $firstName
*
* @return $this
*/
public function setFirstName(?string $firstName = null): self
{
$this->firstName = $firstName;
@@ -207,6 +207,9 @@ class User
return $this;
}
/**
* Gets lastName.
*
@@ -217,15 +220,13 @@ class User
return $this->lastName;
}
/**
* Sets lastName.
*
* @param string|null $lastName
*
* @return $this
*/
* Sets lastName.
*
* @param string|null $lastName
*
* @return $this
*/
public function setLastName(?string $lastName = null): self
{
$this->lastName = $lastName;
@@ -233,6 +234,9 @@ class User
return $this;
}
/**
* Gets email.
*
@@ -243,15 +247,13 @@ class User
return $this->email;
}
/**
* Sets email.
*
* @param string|null $email
*
* @return $this
*/
* Sets email.
*
* @param string|null $email
*
* @return $this
*/
public function setEmail(?string $email = null): self
{
$this->email = $email;
@@ -259,6 +261,9 @@ class User
return $this;
}
/**
* Gets password.
*
@@ -269,15 +274,13 @@ class User
return $this->password;
}
/**
* Sets password.
*
* @param string|null $password
*
* @return $this
*/
* Sets password.
*
* @param string|null $password
*
* @return $this
*/
public function setPassword(?string $password = null): self
{
$this->password = $password;
@@ -285,6 +288,9 @@ class User
return $this;
}
/**
* Gets phone.
*
@@ -295,15 +301,13 @@ class User
return $this->phone;
}
/**
* Sets phone.
*
* @param string|null $phone
*
* @return $this
*/
* Sets phone.
*
* @param string|null $phone
*
* @return $this
*/
public function setPhone(?string $phone = null): self
{
$this->phone = $phone;
@@ -311,6 +315,9 @@ class User
return $this;
}
/**
* Gets userStatus.
*
@@ -321,21 +328,22 @@ class User
return $this->userStatus;
}
/**
* Sets userStatus.
*
* @param int|null $userStatus User Status
*
* @return $this
*/
* Sets userStatus.
*
* @param int|null $userStatus User Status
*
* @return $this
*/
public function setUserStatus(?int $userStatus = null): self
{
$this->userStatus = $userStatus;
return $this;
}
}