src/Visitor/AddMagicCloneMethod.php 1 location
|
@@ 60-68 (lines=9) @@
|
57 |
|
/** |
58 |
|
* @return Node\Stmt\Expression |
59 |
|
*/ |
60 |
|
private function buildCloneExpression(): Node\Stmt\Expression |
61 |
|
{ |
62 |
|
return new Node\Stmt\Expression( |
63 |
|
new Node\Expr\Assign( |
64 |
|
Expressions::resolvePropertyFetch('this', $this->resolverProperty), |
65 |
|
new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->resolverProperty)) |
66 |
|
) |
67 |
|
); |
68 |
|
} |
69 |
|
} |
70 |
|
|
src/Visitor/AddProxiedMethods.php 1 location
|
@@ 74-82 (lines=9) @@
|
71 |
|
/** |
72 |
|
* @return Node\Stmt\Expression |
73 |
|
*/ |
74 |
|
private function buildCloneExpression(): Node\Stmt\Expression |
75 |
|
{ |
76 |
|
return new Node\Stmt\Expression( |
77 |
|
new Node\Expr\Assign( |
78 |
|
Expressions::resolvePropertyFetch('this', $this->resolverProperty), |
79 |
|
new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->resolverProperty)) |
80 |
|
) |
81 |
|
); |
82 |
|
} |
83 |
|
|
84 |
|
/** |
85 |
|
* @param Node\Stmt\ClassMethod $method |