final class Source
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Captured source contents and their path, with no file access or parsing.

Describing source contents in memorydoctest
(new \Deriver\Deriver\Sources\Source('app.php', '<?php'))->path // => 'app.php'

Properties§

public string $path
public string $contents
public bool $declarationsOnly = false

Methods§

public function __construct(
    public string $path,
    public string $contents,
    public bool $declarationsOnly = false,
)

Parameters

$pathstringSource path
$contentsstringCaptured bytes
$declarationsOnlyboolWhether only declarations are available and callable bodies cannot be used

Test cases 1391§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1390

Relations§

Instantiated in 2
Type declarations 3