src/Padawan/Domain/Completer/ObjectCompleter.php 1 location
|
@@ 40-45 (lines=6) @@
|
| 37 |
|
} |
| 38 |
|
$entries = []; |
| 39 |
|
$spec = new Specification($isThis ? 'private' : 'public'); |
| 40 |
|
if ($class->methods !== null) { |
| 41 |
|
foreach ($class->methods->all($spec) as $method) { |
| 42 |
|
$entry = $this->createEntryForMethod($method); |
| 43 |
|
$entries[$method->name] = $entry; |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
if ($class instanceof InterfaceData) { |
| 47 |
|
return $entries; |
| 48 |
|
} |
src/Padawan/Domain/Completer/StaticCompleter.php 1 location
|
@@ 40-45 (lines=6) @@
|
| 37 |
|
} |
| 38 |
|
$entries = []; |
| 39 |
|
$spec = new Specification($isThis ? 'private' : 'public', 1); |
| 40 |
|
if ($class->methods !== null) { |
| 41 |
|
foreach ($class->methods->all($spec) as $method) { |
| 42 |
|
$entry = $this->createEntryForMethod($method); |
| 43 |
|
$entries[$method->name] = $entry; |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
if ($class instanceof InterfaceData) { |
| 47 |
|
return $entries; |
| 48 |
|
} |