Swift_Transport_EsmtpTransport::__call PHP Method

__call() public method

Mixin handling method for ESMTP handlers
public __call ( $method, $args )
    public function __call($method, $args)
    {
        foreach ($this->handlers as $handler) {
            if (in_array(strtolower($method), array_map('strtolower', (array) $handler->exposeMixinMethods()))) {
                $return = call_user_func_array(array($handler, $method), $args);
                // Allow fluid method calls
                if (is_null($return) && substr($method, 0, 3) == 'set') {
                    return $this;
                } else {
                    return $return;
                }
            }
        }
        trigger_error('Call to undefined method ' . $method, E_USER_ERROR);
    }