Skip to content

Implement __toString(), JsonSerializable, Serializable #5

@grimzy

Description

@grimzy

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions