13 lines
208 B
PHP
13 lines
208 B
PHP
|
<?php
|
||
|
|
||
|
class ForLoopReference1 {
|
||
|
public function getThat() {
|
||
|
for ($that = $this; null !== $that; $that = $that->foo()) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function foo() {
|
||
|
return $this;
|
||
|
}
|
||
|
}
|