protected static function & checkClassInterfaceGetPublicStaticMethods ($interfaceName) {
		if (!isset(static::$interfacesStaticMethodsCache[$interfaceName])) {
			$methods = [];
			$interfaceType = new \ReflectionClass($interfaceName);
			$publicOrStaticMethods = $interfaceType->getMethods(\ReflectionMethod::IS_PUBLIC | \ReflectionMethod::IS_STATIC);
			/** @var $publicOrStaticMethod \ReflectionMethod */
			foreach ($publicOrStaticMethods as $publicOrStaticMethod) {
				// filter methods for public and also static method only
				if ($publicOrStaticMethod->isStatic() && $publicOrStaticMethod->isPublic()) {
					$methods[] = $publicOrStaticMethod->getName();
				}
			}
			static::$interfacesStaticMethodsCache[$interfaceName] = $methods;
		}
		return static::$interfacesStaticMethodsCache[$interfaceName];
	}
protected static function & checkClassInterfaceGetPublicStaticMethods ($interfaceName) {
		if (!isset(static::$interfacesStaticMethodsCache[$interfaceName])) {
			$methods = [];
			$interfaceType = new \ReflectionClass($interfaceName);
			$publicOrStaticMethods = $interfaceType->getMethods(\ReflectionMethod::IS_PUBLIC | \ReflectionMethod::IS_STATIC);
			/** @var $publicOrStaticMethod \ReflectionMethod */
			foreach ($publicOrStaticMethods as $publicOrStaticMethod) {
				// filter methods for public and also static method only
				if ($publicOrStaticMethod->isStatic() && $publicOrStaticMethod->isPublic()) {
					$methods[] = $publicOrStaticMethod->getName();
				}
			}
			static::$interfacesStaticMethodsCache[$interfaceName] = $methods;
		}
		return static::$interfacesStaticMethodsCache[$interfaceName];
	}
protected static function & checkClassInterfaceGetPublicStaticMethods ( $ interfaceName ) { if ( ! isset ( static :: $ interfacesStaticMethodsCache [ $ interfaceName ] ) ) { $ methods = [ ] ; $ interfaceType = new \ ReflectionClass ( $ interfaceName ) ; $ publicOrStaticMethods = $ interfaceType -> getMethods ( \ ReflectionMethod :: IS_PUBLIC | \ ReflectionMethod :: IS_STATIC ) ; /** @var $publicOrStaticMethod \ReflectionMethod */ foreach ( $ publicOrStaticMethods as $ publicOrStaticMethod ) { // filter methods for public and also static method only if ( $ publicOrStaticMethod -> isStatic ( ) && $ publicOrStaticMethod -> isPublic ( ) ) { $ methods [ ] = $ publicOrStaticMethod -> getName ( ) ; } } static :: $ interfacesStaticMethodsCache [ $ interfaceName ] = $ methods ; } return static :: $ interfacesStaticMethodsCache [ $ interfaceName ] ; }
Complete array with only static and also only public method names by given interface name.
Return completed array and cache it in static local array.
@param string $interfaceName
@return array
Complete array with only static and also only public method names by given interface name . Return completed array and cache it in static local array .