Skip to content

Commit 716b320

Browse files
committed
Merge branch 'process'
2 parents 1169503 + d331e38 commit 716b320

File tree

11 files changed

+937
-1
lines changed

11 files changed

+937
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Salient\Core\Catalog;
4+
5+
use Salient\Core\AbstractEnumeration;
6+
7+
/**
8+
* Process states
9+
*
10+
* @extends AbstractEnumeration<int>
11+
*/
12+
final class ProcessState extends AbstractEnumeration
13+
{
14+
public const READY = 0;
15+
public const RUNNING = 1;
16+
public const TERMINATED = 2;
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Salient\Core\Catalog;
4+
5+
use Salient\Core\AbstractEnumeration;
6+
7+
/**
8+
* Process streams
9+
*
10+
* @extends AbstractEnumeration<int>
11+
*/
12+
final class ProcessStream extends AbstractEnumeration
13+
{
14+
public const STDIN = 0;
15+
public const STDOUT = 1;
16+
public const STDERR = 2;
17+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Salient\Core\Exception;
4+
5+
use Salient\Core\AbstractException;
6+
7+
class ProcessException extends AbstractException {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Salient\Core\Exception;
4+
5+
class ProcessTimedOutException extends ProcessException {}

0 commit comments

Comments
 (0)