src/PeekAndPoke/Component/Formal/Accessor/PublicGetterSetterAccessor.php
private function getNonStaticPublicMethod($methodName, \ReflectionClass $reflect)
    {
        if ($reflect->hasMethod($methodName)) {

            $method = $reflect->getMethod($methodName);

            if ($method->isPublic() && ! $method->isStatic()) {
                return $method;
            }
        }

        return null;
    }
private function getNonStaticPublicMethod($methodName, \ReflectionClass $reflect)
    {
        if ($reflect->hasMethod($methodName)) {

            $method = $reflect->getMethod($methodName);

            if ($method->isPublic() && ! $method->isStatic()) {
                return $method;
            }
        }

        return null;
    }
@param string           $methodName
@param \ReflectionClass $reflect

@return null|\ReflectionMethod