Class PhpFileImpl

java.lang.Object
org.sonar.php.compat.PhpFileImpl
All Implemented Interfaces:
PhpFile

public class PhpFileImpl extends Object implements PhpFile
  • Method Details

    • create

      public static PhpFile create(org.sonar.api.batch.fs.InputFile inputFile)
    • contents

      public String contents()
      Specified by:
      contents in interface PhpFile
    • filename

      public String filename()
      Specified by:
      filename in interface PhpFile
      Returns:
      Filename for this file (including extension). For example: MyFile.php.
    • uri

      public URI uri()
      Specified by:
      uri in interface PhpFile
      Returns:
      Unique identifier of the file. It may not be a file:// URI, as it may not exist physically.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • key

      public String key()
      Specified by:
      key in interface PhpFile