Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
42 | public function __construct(string $path, string $mode, string $type, ?string $sha, ?ReadableStreamInterface $content) |
||
43 | { |
||
44 | $this->path = $path; |
||
45 | $this->mode = $mode; |
||
46 | $this->type = $type; |
||
47 | $this->sha = $sha; |
||
48 | $this->content = $content; |
||
49 | |||
50 | if ($this->sha === null && $this->content === null) { |
||
51 | throw new \Exception('Only `sha` or `content` can be `null` not both'); |
||
52 | } |
||
53 | } |
||
54 | |||
95 |