protected function collectSetterMethods(\ReflectionClass $ref, SetterInjection $setter)
	{
		$methods = [];
		
		foreach($ref->getMethods() as $method)
		{
			if($method->isStatic() || $method->isAbstract() || !$method->isPublic())
			{
				continue;
			}
			
			if($setter->accept($method))
			{
				$methods[strtolower($method->getName())] = $method;
			}
		}
		
		return $methods;
	}
protected function collectSetterMethods(\ReflectionClass $ref, SetterInjection $setter)
	{
		$methods = [];
		
		foreach($ref->getMethods() as $method)
		{
			if($method->isStatic() || $method->isAbstract() || !$method->isPublic())
			{
				continue;
			}
			
			if($setter->accept($method))
			{
				$methods[strtolower($method->getName())] = $method;
			}
		}
		
		return $methods;
	}
protected function collectSetterMethods ( \ ReflectionClass $ ref , SetterInjection $ setter ) { $ methods = [ ] ; foreach ( $ ref -> getMethods ( ) as $ method ) { if ( $ method -> isStatic ( ) || $ method -> isAbstract ( ) || ! $ method -> isPublic ( ) ) { continue ; } if ( $ setter -> accept ( $ method ) ) { $ methods [ strtolower ( $ method -> getName ( ) ) ] = $ method ; } } return $ methods ; }
Collect all matching setter injetion methods for the given type.

@param \ReflectionClass $ref
@param SetterInjection $setter
@return array<string, MethodInfoInterface>
Collect all matching setter injetion methods for the given type .