ClassMethodUnit.php 459 B

123456789101112131415161718192021
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of sebastian/code-unit.
  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\CodeUnit;
  11. /**
  12. * @immutable
  13. */
  14. final readonly class ClassMethodUnit extends CodeUnit
  15. {
  16. public function isClassMethod(): bool
  17. {
  18. return true;
  19. }
  20. }