Language.php 496 B

123456789101112131415161718192021
  1. <?php
  2. namespace JetBrains\PhpStorm;
  3. use Attribute;
  4. /**
  5. * Specifies that the parameter is a string that represents source code in a different language.
  6. * An IDE will automatically inject the specified language into the passed string literals.
  7. *
  8. * @since 8.0
  9. */
  10. #[Attribute(Attribute::TARGET_PARAMETER)]
  11. class Language {
  12. /**
  13. * @param string $languageName Language name like "PHP", "SQL", "RegExp", etc...
  14. */
  15. public function __construct(string $languageName)
  16. {
  17. }
  18. }