菜谱项目

ClassWithToString.php 398B

1234567891011121314151617181920
  1. <?php
  2. /*
  3. * This file is part of the Comparator package.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\Comparator;
  11. class ClassWithToString
  12. {
  13. public function __toString()
  14. {
  15. return 'string representation';
  16. }
  17. }