Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Line.php

class Line

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php \PhpParser\Node\Scalar\MagicConst\Line

Hierarchy

  • class \SebastianBergmann\Diff\Line

Expanded class hierarchy of Line

18 string references to 'Line'
Checkstyle::generateFileReport in vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php
Generate a partial report for a single processed file.
ClassDeclarationSniff::processOpen in vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
Processes the opening section of a class declaration.
Clover::process in vendor/phpunit/php-code-coverage/src/Report/Clover.php
Cobertura::process in vendor/phpunit/php-code-coverage/src/Report/Cobertura.php
CommentedOutCodeSniff::process in vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php
Processes this test, when one of its tokens is encountered.

... See full list

File

vendor/sebastian/diff/src/Line.php, line 12

Namespace

SebastianBergmann\Diff
View source
final class Line {
    public const ADDED = 1;
    public const REMOVED = 2;
    public const UNCHANGED = 3;
    private int $type;
    private string $content;
    public function __construct(int $type = self::UNCHANGED, string $content = '') {
        $this->type = $type;
        $this->content = $content;
    }
    public function content() : string {
        return $this->content;
    }
    public function type() : int {
        return $this->type;
    }
    public function isAdded() : bool {
        return $this->type === self::ADDED;
    }
    public function isRemoved() : bool {
        return $this->type === self::REMOVED;
    }
    public function isUnchanged() : bool {
        return $this->type === self::UNCHANGED;
    }
    
    /**
     * @deprecated
     */
    public function getContent() : string {
        return $this->content;
    }
    
    /**
     * @deprecated
     */
    public function getType() : int {
        return $this->type;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Line::$content private property
Line::$type private property
Line::ADDED public constant
Line::content public function
Line::getContent public function
Line::getType public function
Line::isAdded public function
Line::isRemoved public function
Line::isUnchanged public function
Line::REMOVED public constant
Line::type public function
Line::UNCHANGED public constant
Line::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal