Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public static function forProductVersion( |
||
21 | Product $product, |
||
22 | string $version, |
||
23 | Exception $previous = null |
||
24 | ): ExceptionContract { |
||
25 | $message = sprintf('Failed to publish version `%s` of product `%s`.', $version, $product->getName()); |
||
26 | $self = new self($message, self::CODE, $previous); |
||
27 | $self->product = $product; |
||
28 | |||
29 | return $self; |
||
30 | } |
||
32 |