-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: specify next release update changelog suppression méthode uniquement utilisée dans les tests use a Chunk to wrap data and type instead of using arrays allow to access the output chunks while writing the input stream use the property when closing the input use a lazy Sequence to return the output read while writing input use a property to store the Watch to allow only returning Sequences when reading the pipes throw when the status can't be retrieved CS
- Loading branch information
Showing
17 changed files
with
242 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
use Innmind\Server\Control\Server\Process\{ | ||
Pid, | ||
Output, | ||
ExitCode, | ||
TimedOut, | ||
Failed, | ||
Signaled, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Innmind\Server\Control\Server\Process\Output; | ||
|
||
use Innmind\Immutable\Str; | ||
|
||
/** | ||
* @psalm-immutable | ||
*/ | ||
final class Chunk | ||
{ | ||
private function __construct( | ||
private Str $data, | ||
private Type $type, | ||
) { | ||
} | ||
|
||
/** | ||
* @psalm-pure | ||
*/ | ||
public static function of(Str $data, Type $type): self | ||
{ | ||
return new self($data, $type); | ||
} | ||
|
||
public function data(): Str | ||
{ | ||
return $this->data; | ||
} | ||
|
||
public function type(): Type | ||
{ | ||
return $this->type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.