ReflectionClass::getMethods Yöntemleri dizi olarak döndürür &reftitle.description; public arrayReflectionClass::getMethods intnullsüzgeç&null; Sınıfın yöntemlerini bir dizi olarak döndürür. &reftitle.parameters; süzgeç Dizinin belirli öznitelikleri içeren yöntemleri içermesini sağlayacak süzgeç. ReflectionMethod::IS_STATIC, ReflectionMethod::IS_PUBLIC, ReflectionMethod::IS_PROTECTED, ReflectionMethod::IS_PRIVATE, ReflectionMethod::IS_ABSTRACT, ReflectionMethod::IS_FINAL sabitlerinin bitsel VEYAsı; belirtilen özniteliklerden herhangi birini içeren her yöntem döndürülür. ~ gibi diğer bitsel işlemler beklendiği gibi çalışmayabilir. Örneğin, statik olmayan yöntemlerin tamamını döndürmek mümkün olmaz. &reftitle.returnvalues; Her yöntemi yansıtan ReflectionMethod nesnelerininin bir dizisi. &reftitle.changelog; &Version; &Description; 7.2.0 süzgeç artık &null; olabiliyor. &reftitle.examples; - <methodname>ReflectionClass::getMethods</methodname> temel kullanım örneği getMethods(); var_dump($methods); ?> ]]> &example.outputs; object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "firstMethod" ["class"]=> string(5) "Apple" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "secondMethod" ["class"]=> string(5) "Apple" } [2]=> object(ReflectionMethod)#4 (2) { ["name"]=> string(11) "thirdMethod" ["class"]=> string(5) "Apple" } } ]]> - <methodname>ReflectionClass::getMethods</methodname> ve sonuçların süzülmesi getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_FINAL); var_dump($methods); ?> ]]> &example.outputs; object(ReflectionMethod)#2 (2) { ["name"]=> string(12) "secondMethod" ["class"]=> string(5) "Apple" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(11) "thirdMethod" ["class"]=> string(5) "Apple" } } ]]> &reftitle.seealso; ReflectionClass::getMethod get_class_methods