Eloquent\Phony\Mock\Builder\Method\MethodDefinitionCollection::methodName PHP Method

methodName() public method

Get the canonical method name for the supplied method name.
public methodName ( string $name ) : string | null
$name string The method name.
return string | null The canonical method name, or null if no such method exists.
    public function methodName($name)
    {
        $name = strtolower($name);
        if (isset($this->methodNames[$name])) {
            return $this->methodNames[$name];
        }
        return null;
    }