A simple text object.
namespace Jstewmc\Text;
$text = new Text('foo');
$text->getText(); // returns "foo"
(string) $text; // returns "foo"
This library is a simple text object that can serve as the base class for more complex text objects.
This library follows Semantic Versioning.
- Update
text
property fromprivate
toprotected
(whoops!).
- Initial release