-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rstgroup/scalar-typed-array
Scalar and Class typed arrays
- Loading branch information
Showing
4 changed files
with
115 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
test/ListOfObjectsWithScalarTypedArrayAndObjectListConstructor.php
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,19 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace RstGroup\ObjectBuilder\Test; | ||
|
||
class ListOfObjectsWithScalarTypedArrayAndObjectListConstructor | ||
{ | ||
public $list1; | ||
public $list2; | ||
|
||
/** | ||
* @param string[] $list1 | ||
* @param SimpleScalarConstructor[] $list2 | ||
*/ | ||
public function __construct(array $list1, array $list2) | ||
{ | ||
$this->list1 = $list1; | ||
$this->list2 = $list2; | ||
} | ||
} |
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,19 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace RstGroup\ObjectBuilder\Test; | ||
|
||
class ListOfObjectsWithScalarTypedArrayConstructor | ||
{ | ||
public $list1; | ||
public $list2; | ||
|
||
/** | ||
* @param string[] $list1 | ||
* @param mixed[] $list2 | ||
*/ | ||
public function __construct(array $list1, array $list2) | ||
{ | ||
$this->list1 = $list1; | ||
$this->list2 = $list2; | ||
} | ||
} |
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