Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
ScheduleOrigin 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 label 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Schedule;
6
7use Stewart\Runtime\Model\ResourceScope;
8
9final readonly class ScheduleOrigin
10{
11    public function __construct(
12        public ResourceScope $scope,
13        public string $taskId,
14        public string $description,
15    ) {}
16
17    public function label(): string
18    {
19        return \sprintf('schedule %s (%s)', $this->taskId, $this->description);
20    }
21}