Skip to content

Commit

Permalink
phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 30, 2014
1 parent b727fd4 commit c9059dc
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions framework/Stream_Wrapper/lib/Horde/Stream/Wrapper/String.php
Expand Up @@ -23,30 +23,35 @@
class Horde_Stream_Wrapper_String
{
/**
* The current context.
*
* @var resource
*/
public $context;

/**
* @var string
*/
protected $_string;

/**
* String length.
*
* @var integer
*/
protected $_length;

/**
* String position.
*
* @var integer
*/
protected $_position;

/**
* @param string $path
* @param string $mode
* @param integer $options
* @param string &$opened_path
* The string.
*
* @var string
*/
protected $_string;

/**
* @see streamWrapper::stream_open()
*/
public function stream_open($path, $mode, $options, &$opened_path)
{
Expand All @@ -66,9 +71,7 @@ public function stream_open($path, $mode, $options, &$opened_path)
}

/**
* @param integer $count
*
* @return string
* @see streamWrapper::stream_read()
*/
public function stream_read($count)
{
Expand All @@ -78,25 +81,23 @@ public function stream_read($count)
}

/**
* @param string $data
*
* @return integer
* @see streamWrapper::stream_write()
*/
public function stream_write($data)
{
return strlen($data);
}

/**
* @return integer
* @see streamWrapper::stream_tell()
*/
public function stream_tell()
{
return $this->_position;
}

/**
* @return boolean
* @see streamWrapper::stream_eof()
*/
public function stream_eof()
{
Expand All @@ -105,8 +106,6 @@ public function stream_eof()

/**
* @see streamWrapper::stream_stat()
*
* @return array
*/
public function stream_stat()
{
Expand All @@ -128,8 +127,7 @@ public function stream_stat()
}

/**
* @param integer $offset
* @param integer $whence SEEK_SET, SEEK_CUR, or SEEK_END
* @see streamWrapper::stream_seek()
*/
public function stream_seek($offset, $whence)
{
Expand Down

0 comments on commit c9059dc

Please sign in to comment.