Skip to content

Commit d1388b6

Browse files
committed
ToString
1 parent f2f6374 commit d1388b6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Normalizer.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,13 @@ public function __invoke($property)
263263
{
264264
return $this->{(string) $property};
265265
}
266+
267+
268+
/**
269+
* @return string The JSON string representation of the normalized data
270+
*/
271+
public function __toString(): string
272+
{
273+
return json_encode($this);
274+
}
266275
}

0 commit comments

Comments
 (0)