Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
||
| HistoryStep | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
||
| __construct | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
2 | |||||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\display_builder; |
| 6 | |
| 7 | use Drupal\Component\Render\FormattableMarkup; |
| 8 | use Symfony\Component\Validator\Constraints as Assert; |
| 9 | |
| 10 | /** |
| 11 | * A single step in the instance log history. |
| 12 | */ |
| 13 | class HistoryStep { |
| 14 | |
| 15 | /** |
| 16 | * Construct an history step. |
| 17 | * |
| 18 | * @param array $data |
| 19 | * An UI Patterns sources tree. |
| 20 | * @param int $hash |
| 21 | * An unique hash, as an crc32 checksum integer. |
| 22 | * @param \Drupal\Component\Render\FormattableMarkup|string|null $log |
| 23 | * A log message. |
| 24 | * @param int $time |
| 25 | * A timestamp. |
| 26 | * @param ?int $user |
| 27 | * A Drupal user entity ID. |
| 28 | */ |
| 29 | public function __construct( |
| 30 | #[Assert\Type('list')] |
| 31 | // Writable because of Instance::postCreate(). |
| 32 | public array $data, |
| 33 | public readonly int $hash, |
| 34 | public readonly FormattableMarkup|string|null $log, |
| 35 | #[Assert\Positive] |
| 36 | public readonly int $time, |
| 37 | #[Assert\PositiveOrZero] |
| 38 | public readonly ?int $user, |
| 39 | ) {} |
| 40 | |
| 41 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.