FooBar.php 583 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * This file is part of the Carbon package.
  4. *
  5. * (c) Brian Nesbitt <brian@nesbot.com>
  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 Tests\Carbon\Fixtures;
  11. trait FooBar
  12. {
  13. public function super($string)
  14. {
  15. return 'super'.$string.' / '.$this->format('l').' / '.($this->isMutable() ? 'mutable' : 'immutable');
  16. }
  17. public function me()
  18. {
  19. return $this;
  20. }
  21. public static function noThis()
  22. {
  23. return isset(${'this'});
  24. }
  25. }