php/Element.php
public function supports( $methods ) {
		$support = 0;
		$methods = (array)$methods;

		foreach ( $methods as $method ) {
			if ( method_exists( $this, $method ) ) {
				$support++;
				continue;
			}
		}

		return count( $methods ) === $support;
	}
public function supports( $methods ) {
		$support = 0;
		$methods = (array)$methods;

		foreach ( $methods as $method ) {
			if ( method_exists( $this, $method ) ) {
				$support++;
				continue;
			}
		}

		return count( $methods ) === $support;
	}
public function supports ( $ methods ) { $ support = 0 ; $ methods = ( array ) $ methods ; foreach ( $ methods as $ method ) { if ( method_exists ( $ this , $ method ) ) { $ support ++ ; continue ; } } return count ( $ methods ) === $ support ; }
Check if element supports one or more methods.

@param string|string[] $methods Method or list of methods to check
@return bool All methods are supported
Check if element supports one or more methods .