src/Visitor/AddMagicClone.php 1 location
|
@@ 40-48 (lines=9) @@
|
37 |
|
return null; |
38 |
|
} |
39 |
|
|
40 |
|
private function buildCloneExpression(): Node\Stmt\Expression |
41 |
|
{ |
42 |
|
return new Node\Stmt\Expression( |
43 |
|
new Node\Expr\Assign( |
44 |
|
Expressions::resolvePropertyFetch('this', $this->resolverProperty), |
45 |
|
new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->resolverProperty)) |
46 |
|
) |
47 |
|
); |
48 |
|
} |
49 |
|
} |
src/Visitor/AddProxiedMethods.php 1 location
|
@@ 54-62 (lines=9) @@
|
51 |
|
return $node; |
52 |
|
} |
53 |
|
|
54 |
|
private function buildCloneExpression(): Node\Stmt\Expression |
55 |
|
{ |
56 |
|
return new Node\Stmt\Expression( |
57 |
|
new Node\Expr\Assign( |
58 |
|
Expressions::resolvePropertyFetch('this', $this->property), |
59 |
|
new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->property)) |
60 |
|
) |
61 |
|
); |
62 |
|
} |
63 |
|
|
64 |
|
private function modifyMethod(Node\Stmt\ClassMethod $method): Node\Stmt\ClassMethod |
65 |
|
{ |