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
Is there any configuration that could be used to customize the method name when serializing the object? FYI, all my properties were set to private (as per our requirements).
Example Class:
public ClassA {
private int $id;
private string $name;
public function __construct(int $id, string $name)
{
$this->id = $id;
$this->name = $name;
}
public function getId(): int
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any configuration that could be used to customize the method name when serializing the object? FYI, all my properties were set to private (as per our requirements).
Example Class:
The result of serializeObjects() method:
My Expected result:
Beta Was this translation helpful? Give feedback.
All reactions