Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement __toString(), JsonSerializable, Serializable #5

Open
grimzy opened this issue Mar 3, 2019 · 0 comments
Open

Implement __toString(), JsonSerializable, Serializable #5

grimzy opened this issue Mar 3, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@grimzy
Copy link
Owner

grimzy commented Mar 3, 2019

Implement __toString() on GitInfo class to be able to echo $gitInfo and get the string representation of $gitInfo->getInfo().

(If needed) Implement JsonSerializable on GitInfo class to be able to json_encode($gitInfo) and get the JSON representation of $gitInfo->getInfo().

(If needed) Implement Serializable on GitInfo class to be able to $gitInfo->serialize() and get the serialized representation of $gitInfo->getInfo().

@grimzy grimzy added the enhancement New feature or request label Mar 3, 2019
@grimzy grimzy changed the title __toString() Implement __toString() Mar 3, 2019
@grimzy grimzy changed the title Implement __toString() Implement __toString(), JsonSerializable, Serializable Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant