-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Configuration and ReflectionContainer
- Loading branch information
Showing
7 changed files
with
146 additions
and
2 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
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,35 @@ | ||
<?php | ||
|
||
namespace Rougin\Slytherin\Fixture\Classes; | ||
|
||
/** | ||
* Parameter Class | ||
* | ||
* @package Slytherin | ||
* @author Rougin Royce Gutib <[email protected]> | ||
*/ | ||
class ParameterClass | ||
{ | ||
/** | ||
* @var \Rougin\Slytherin\Fixture\Classes\WithMultipleParameters | ||
*/ | ||
protected $class; | ||
|
||
/** | ||
* @param \Rougin\Slytherin\Fixture\Classes\WithMultipleParameters $class | ||
*/ | ||
public function __construct(WithMultipleParameters $class) | ||
{ | ||
$this->class = $class; | ||
} | ||
|
||
/** | ||
* Returns with a string of "With multiple parameters". | ||
* | ||
* @return string | ||
*/ | ||
public function index() | ||
{ | ||
return $this->class->index(); | ||
} | ||
} |
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,59 @@ | ||
<?php | ||
|
||
namespace Rougin\Slytherin\Fixture\Classes; | ||
|
||
/** | ||
* With Multiple Parameters | ||
* | ||
* @package Slytherin | ||
* @author Rougin Royce Gutib <[email protected]> | ||
*/ | ||
class WithMultipleParameters | ||
{ | ||
/** | ||
* @var array | ||
*/ | ||
protected $data = array(); | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $fields = array(); | ||
|
||
/** | ||
* @var null | ||
*/ | ||
protected $lang = null; | ||
|
||
/** | ||
* @var null | ||
*/ | ||
protected $dir = null; | ||
|
||
/** | ||
* @param array $data | ||
* @param array $fields | ||
* @param string|null $lang | ||
* @param string|null $dir | ||
*/ | ||
public function __construct($data = array(), $fields = array(), $lang = null, $dir = null) | ||
{ | ||
$this->data = $data; | ||
|
||
$this->fields = $fields; | ||
|
||
$this->lang = $lang; | ||
|
||
$this->dir = $dir; | ||
} | ||
|
||
/** | ||
* Returns with a string of "With multiple parameters". | ||
* | ||
* @return string | ||
*/ | ||
public function index() | ||
{ | ||
return 'With multiple parameters'; | ||
} | ||
} |
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