InterfaceUnit.php 517 B

123456789101112131415161718192021222324
  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. * @psalm-immutable
  13. */
  14. final class InterfaceUnit extends CodeUnit
  15. {
  16. /**
  17. * @psalm-assert-if-true InterfaceUnit $this
  18. */
  19. public function isInterface(): bool
  20. {
  21. return true;
  22. }
  23. }