MixinTrait.php 487 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of the Carbon package.
  5. *
  6. * (c) Brian Nesbitt <brian@nesbot.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Tests\CarbonInterval\Fixtures;
  12. trait MixinTrait
  13. {
  14. public function andAgain()
  15. {
  16. return $this->times(2);
  17. }
  18. public function copyAndAgain()
  19. {
  20. return $this->copy()->andAgain();
  21. }
  22. }