src/Abstracts/Addable.php
protected function findClass($method)
	{
		if (!preg_match("/^add([a-zA-Z]+)/", $method, $matches)) {
			return false;
		}

		$className = "\\HtmlForm\\Elements\\{$matches[1]}";

		if (!class_exists($className)) {
			return false;
		}

		return $className;
	}
protected function findClass($method)
	{
		if (!preg_match("/^add([a-zA-Z]+)/", $method, $matches)) {
			return false;
		}

		$className = "\\HtmlForm\\Elements\\{$matches[1]}";

		if (!class_exists($className)) {
			return false;
		}

		return $className;
	}
protected function findClass ( $ method ) { if ( ! preg_match ( "/^add([a-zA-Z]+)/" , $ method , $ matches ) ) { return false ; } $ className = "\\HtmlForm\\Elements\\{$matches[1]}" ; if ( ! class_exists ( $ className ) ) { return false ; } return $ className ; }
Based on a passed method name, figure out
if there is a cooresponding HtmlForm element.

@param  string $method Called method
@return string Class name (if there is one)
Based on a passed method name figure out if there is a cooresponding HtmlForm element .