protected function __overloadMethods($method, $args)
	{
		$_method = strtolower($method);

		if (in_array($_method, ['prefix', 'suffix'])) {
			return call_user_func_array(array($this, 'affix'), array_merge([$_method], $args));
		}

		if ($_method == 'length') {
			return call_user_func_array(array($this, 'length'), $args);
		}

		throw new BadMethodCallException(sprintf("Call to unknown method %s::%s()", get_called_class(), $method));
	}
protected function __overloadMethods($method, $args)
	{
		$_method = strtolower($method);

		if (in_array($_method, ['prefix', 'suffix'])) {
			return call_user_func_array(array($this, 'affix'), array_merge([$_method], $args));
		}

		if ($_method == 'length') {
			return call_user_func_array(array($this, 'length'), $args);
		}

		throw new BadMethodCallException(sprintf("Call to unknown method %s::%s()", get_called_class(), $method));
	}
protected function __overloadMethods ( $ method , $ args ) { $ _method = strtolower ( $ method ) ; if ( in_array ( $ _method , [ 'prefix' , 'suffix' ] ) ) { return call_user_func_array ( array ( $ this , 'affix' ) , array_merge ( [ $ _method ] , $ args ) ) ; } if ( $ _method == 'length' ) { return call_user_func_array ( array ( $ this , 'length' ) , $ args ) ; } throw new BadMethodCallException ( sprintf ( "Call to unknown method %s::%s()" , get_called_class ( ) , $ method ) ) ; }
Overload helper for internal method calls.

@param string $method
@param array $args
@return $this

@throws \BadMethodCallException
Overload helper for internal method calls .