ReflectionMethod::createFromMethodName

Creates a new ReflectionMethod

&reftitle.description; public static `static` `ReflectionMethod::createFromMethodName` `string` `method`

Creates a new `ReflectionMethod`.

&reftitle.parameters;

`method`

- Class name and method name delimited by `::`.

&reftitle.returnvalues;

Returns a new `ReflectionMethod` on success.

&reftitle.errors;

A `ReflectionException` is thrown if the given method does not exist.

&reftitle.examples;

### `ReflectionMethod::createFromMethodName` example

    <?php

    class Foo {
        public function bar() {

        }
    }

    $methodInfo = ReflectionMethod::createFromMethodName("Foo::bar");
    var_dump($methodInfo);
    ?>

&example.outputs;

    object(ReflectionMethod)#1 (2) {
      ["name"]=>
      string(3) "bar"
      ["class"]=>
      string(3) "Foo"
    }