-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] update docs with node examples (#4269)
- Loading branch information
1 parent
8759d0e
commit a73fc88
Showing
137 changed files
with
3,297 additions
and
2,196 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Name\FullyQualified; | ||
use PhpParser\Node\Stmt\Class_; | ||
use PhpParser\Node\Stmt\TraitUseAdaptation\Alias; | ||
|
||
$traitFullyQualified = new FullyQualified('TraitName'); | ||
|
||
return new Alias($traitFullyQualified, 'method', Class_::MODIFIER_PUBLIC, 'aliasedMethod'); |
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,8 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Arg; | ||
use PhpParser\Node\Expr\Variable; | ||
|
||
$variable = new Variable('variableName'); | ||
|
||
return new Arg($variable); |
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,13 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\Array_; | ||
use PhpParser\Node\Expr\ArrayItem; | ||
use PhpParser\Node\Expr\Variable; | ||
use PhpParser\Node\Scalar\String_; | ||
|
||
$value = new Variable('Tom'); | ||
$key = new String_('name'); | ||
|
||
$arrayItem = new ArrayItem($value, $key); | ||
|
||
return new Array_([$arrayItem]); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_bitwise_and.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\BitwiseAnd; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseAnd($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_bitwise_or.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\BitwiseOr; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseOr($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_bitwise_xor.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\BitwiseXor; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseXor($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_coalesce.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Coalesce; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Coalesce($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_concat.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Concat; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Concat($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_div.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Div; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Div($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_minus.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Minus; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Minus($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_mod.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Mod; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Mod($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_mul.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Mul; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Mul($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_plus.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Plus; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Plus($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_pow.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\Pow; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Pow($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_shift_left.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\ShiftLeft; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new ShiftLeft($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/assign_op/assign_op_shift_right.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\AssignOp\ShiftRight; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new ShiftRight($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_bitwise_and.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\BitwiseAnd; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseAnd($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_bitwise_or.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\BitwiseOr; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseOr($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_bitwise_xor.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\BitwiseXor; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BitwiseXor($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_boolean_and.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\BooleanAnd; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new BooleanAnd($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_coalesce.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Coalesce; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Coalesce($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_concat.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Concat; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Concat($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_div.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Div; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Div($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_equal.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Equal; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Equal($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_greater.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Greater; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Greater($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_greater_or_equal.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\GreaterOrEqual; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new GreaterOrEqual($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_identical.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Identical; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Identical($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_logical_and.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\LogicalAnd; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new LogicalAnd($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_logical_or.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\LogicalOr; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new LogicalOr($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_logical_xor.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\LogicalXor; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new LogicalXor($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_minus.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Minus; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Minus($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_mod.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Mod; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Mod($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_mul.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Mul; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Mul($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_not_equal.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\NotEqual; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new NotEqual($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_not_identical.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\NotIdentical; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new NotIdentical($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_plus.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Plus; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Plus($left, $right); |
9 changes: 9 additions & 0 deletions
9
utils/node-documentation-generator/snippet/binary_op/binary_op_pow.php.inc
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,9 @@ | ||
<?php | ||
|
||
use PhpParser\Node\Expr\BinaryOp\Pow; | ||
use PhpParser\Node\Scalar\LNumber; | ||
|
||
$left = new LNumber(5); | ||
$right = new LNumber(10); | ||
|
||
return new Pow($left, $right); |
Oops, something went wrong.