1<?php 2 3class Horde_Kolab_Session_Stub_Imap 4{ 5 private $_result; 6 7 public function __construct($result = null) 8 { 9 $this->_result = $result; 10 } 11 12 public function login() 13 { 14 if ($this->_result !== null) { 15 throw new Horde_Imap_Client_Exception( 16 'Login failed', $this->_result 17 ); 18 } 19 } 20}