Skip to content

Commit

Permalink
yay typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 5, 2015
1 parent 9d4c932 commit e4f431c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -74,7 +74,8 @@ public function __construct(Horde_Kolab_Storage_Data $data, $params)
{
$this->_data = $data;
$this->_history = $params['factory']->createHistory($data->getAuth());
$this->_logger = new Horde_Support_Stub();
$this->_logger = new Horde_Log_Logger();
$this->_logger->addHandler(new Horde_Log_Handler_Mock());
$this->_factory = $params['factory'];
}

Expand All @@ -83,9 +84,11 @@ public function __construct(Horde_Kolab_Storage_Data $data, $params)
*
* @param Horde_Log_Logger $logger The logger instance.
*/
public function setLogger(Horde_Log_Logger $logger)
public function setLogger(Horde_Log_Logger $logger = null)
{
$this->_logger = $logger;
if (!is_null($logger)) {
$this->_logger = $logger;
}
}

/**
Expand Down
Expand Up @@ -115,7 +115,7 @@ public function synchronize($params = array())
{
}

public function setLogger(Horde_Log_Logger $logger)
public function setLogger(Horde_Log_Logger $logger = null)
{

}
Expand Down

0 comments on commit e4f431c

Please sign in to comment.