1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Added docblocks

This commit is contained in:
Jordi Boggiano
2011-04-05 22:35:39 +02:00
parent 35bd8f724b
commit 3b0f738b88
3 changed files with 49 additions and 1 deletions

View File

@@ -26,6 +26,11 @@ class StreamHandler extends AbstractHandler
protected $stream;
protected $url;
/**
* @param string $filename
* @param integer $level
* @param Boolean $bubble
*/
public function __construct($stream, $level = Logger::DEBUG, $bubble = true)
{
parent::__construct($level, $bubble);
@@ -36,6 +41,9 @@ class StreamHandler extends AbstractHandler
}
}
/**
* {@inheritdoc}
*/
public function write(array $record)
{
if (null === $this->stream) {
@@ -51,6 +59,9 @@ class StreamHandler extends AbstractHandler
fwrite($this->stream, (string) $record['message']);
}
/**
* {@inheritdoc}
*/
public function close()
{
if (null !== $this->stream) {