File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,30 +30,34 @@ example containing most features described below:
30
30
31
31
namespace Acme;
32
32
33
- class Foo
33
+ class FooBar
34
34
{
35
35
const SOME_CONST = 42;
36
36
37
- private $foo ;
37
+ private $fooBar ;
38
38
39
39
/**
40
40
* @param string $dummy Some argument description
41
41
*/
42
42
public function __construct($dummy)
43
43
{
44
- $this->foo = $this->transform($dummy);
44
+ $this->fooBar = $this->transform($dummy);
45
45
}
46
46
47
47
/**
48
48
* @param string $dummy Some argument description
49
49
* @return string|null Transformed input
50
50
*/
51
- private function transform ($dummy)
51
+ private function transformText ($dummy, $options = array() )
52
52
{
53
+ $mergedOptions = array_merge($options, array(
54
+ 'some_default' => 'values',
55
+ ));
56
+
53
57
if (true === $dummy) {
54
58
return;
55
59
}
56
- if ('string' === $dummy) {
60
+ if ('string' === $dummy && mergedOptions['some_default'] === 'values' ) {
57
61
$dummy = substr($dummy, 0, 5);
58
62
}
59
63
You can’t perform that action at this time.
0 commit comments