Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
GetMethodIfExists.php
01 <?php
02
03 declare(strict_types=1);
04
05 namespace ProxyManager\ProxyGenerator\Util;
06
07 use ReflectionClass;
08 use ReflectionMethod;
09
10 /**
11 * Internal utility class - allows fetching a method from a given class, if it exists
12 *
13 * @author Marco Pivetta <ocramius@gmail.com>
14 * @license MIT
15 */
16 final class GetMethodIfExists
17 {
18 private function __construct()
19 {
20 }
21
22 public static function get(ReflectionClass $class, string $method) : ?ReflectionMethod
23 {
24 return $class->hasMethod($method) ? $class->getMethod($method) : null;
25 }
26 }
27