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

Breadcrumb

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

function Chunk::setLines

@psalm-param list<Line> $lines

File

vendor/sebastian/diff/src/Chunk.php, line 67

Class

Chunk
@template-implements IteratorAggregate<int, Line>

Namespace

SebastianBergmann\Diff

Code

public function setLines(array $lines) : void {
    foreach ($lines as $line) {
        if (!$line instanceof Line) {
            throw new InvalidArgumentException();
        }
    }
    $this->lines = $lines;
}

API Navigation

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