Closed michael-rubel closed 1 year ago
As we have the toArray method in every value object, it's also nice to have a toString method to be able to get the string representation of the object without using a native (string) cast.
$bool = new Boolean(1); $bool->toString(); // 'true'
About
As we have the toArray method in every value object, it's also nice to have a toString method to be able to get the string representation of the object without using a native (string) cast.