StringObject.php 307 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. namespace TestApp\Log\Object;
  4. /**
  5. * used for testing when an object is passed to a logger
  6. */
  7. class StringObject
  8. {
  9. /**
  10. * String representation of the object
  11. *
  12. * @return string
  13. */
  14. public function __toString()
  15. {
  16. return 'Hey!';
  17. }
  18. }