1 | <?php |
||
11 | class Subject |
||
12 | { |
||
13 | /** |
||
14 | * @var Type |
||
15 | */ |
||
16 | private $type; |
||
17 | |||
18 | /** |
||
19 | * @var Scope|null |
||
20 | */ |
||
21 | private $scope; |
||
22 | |||
23 | /** |
||
24 | * @var Description |
||
25 | */ |
||
26 | private $description; |
||
27 | |||
28 | 3 | private function __construct(Type $type, ?Scope $scope, Description $description) |
|
34 | |||
35 | /** |
||
36 | * @throws InvalidArgumentException |
||
37 | */ |
||
38 | 7 | public static function build(Type $type, ?Scope $scope, Description $description, Configuration $configuration): self |
|
54 | |||
55 | 3 | public function __toString(): string |
|
59 | } |