Skip to content

Commit 5834ca5

Browse files
authored
Merge pull request #9 from phpsu/task/make-everything-internal
Marking the API internal, leaving only Expressions and ShellBuilder open
2 parents f1c03ef + 160e2e7 commit 5834ca5

12 files changed

Lines changed: 50 additions & 0 deletions

src/Collection/AbstractCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
88
use PHPSu\ShellCommandBuilder\ShellInterface;
99

10+
/**
11+
* @internal
12+
* @psalm-internal PHPSu\ShellCommandBuilder
13+
*/
1014
abstract class AbstractCollection implements ShellInterface
1115
{
1216
/** @var CollectionTuple|null */

src/Collection/CollectionTuple.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
88
use PHPSu\ShellCommandBuilder\ShellInterface;
99

10+
/**
11+
* @internal
12+
* @psalm-internal PHPSu\ShellCommandBuilder
13+
*/
1014
final class CollectionTuple implements ShellInterface
1115
{
1216
/** @var string */

src/Collection/Pipeline.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
use PHPSu\ShellCommandBuilder\ShellCommand;
1010
use PHPSu\ShellCommandBuilder\ShellInterface;
1111

12+
/**
13+
* @internal
14+
* @psalm-internal PHPSu\ShellCommandBuilder
15+
*/
1216
final class Pipeline extends AbstractCollection
1317
{
1418
/**

src/Collection/Redirection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
99
use PHPSu\ShellCommandBuilder\ShellInterface;
1010

11+
/**
12+
* @internal
13+
* @psalm-internal PHPSu\ShellCommandBuilder
14+
*/
1115
final class Redirection extends AbstractCollection
1216
{
1317
/**

src/Collection/ShellList.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
99
use PHPSu\ShellCommandBuilder\ShellInterface;
1010

11+
/**
12+
* @internal
13+
* @psalm-internal PHPSu\ShellCommandBuilder
14+
*/
1115
final class ShellList extends AbstractCollection
1216
{
1317
/**

src/Conditional/BasicExpression.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use PHPSu\ShellCommandBuilder\Definition\ConditionalOperator;
88
use PHPSu\ShellCommandBuilder\ShellInterface;
99

10+
/**
11+
* @internal
12+
* @psalm-internal PHPSu\ShellCommandBuilder
13+
*/
1014
abstract class BasicExpression implements ShellInterface
1115
{
1216
/**

src/Literal/ShellArgument.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
88
use PHPSu\ShellCommandBuilder\ShellInterface;
99

10+
/**
11+
* @internal
12+
* @psalm-internal PHPSu\ShellCommandBuilder
13+
*/
1014
final class ShellArgument extends ShellWord
1115
{
1216
protected $isArgument = true;

src/Literal/ShellEnvironmentVariable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
use PHPSu\ShellCommandBuilder\ShellInterface;
88

9+
/**
10+
* @internal
11+
* @psalm-internal PHPSu\ShellCommandBuilder
12+
*/
913
final class ShellEnvironmentVariable extends ShellWord
1014
{
1115
protected $isEnvironmentVariable = true;

src/Literal/ShellExecutable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
namespace PHPSu\ShellCommandBuilder\Literal;
66

7+
/**
8+
* @internal
9+
* @psalm-internal PHPSu\ShellCommandBuilder
10+
*/
711
final class ShellExecutable extends ShellWord
812
{
913
protected $isArgument = true;

src/Literal/ShellOption.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
namespace PHPSu\ShellCommandBuilder\Literal;
66

7+
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
78
use PHPSu\ShellCommandBuilder\ShellInterface;
89

10+
/**
11+
* @internal
12+
* @psalm-internal PHPSu\ShellCommandBuilder
13+
*/
914
final class ShellOption extends ShellWord
1015
{
1116
protected $isOption = true;
@@ -15,6 +20,7 @@ final class ShellOption extends ShellWord
1520
* ShellArgument constructor.
1621
* @param string $option
1722
* @param ShellInterface|string $value
23+
* @throws ShellBuilderException
1824
*/
1925
public function __construct(string $option, $value = '')
2026
{

0 commit comments

Comments
 (0)