Minor doc fix at Serializer.php.

This commit is contained in:
Vasil Rangelov
2013-05-27 01:31:58 +03:00
parent 5b2b43e2a9
commit a2aae72328
@@ -33,7 +33,7 @@ class Serializer
/** @var bool Whether to indent the first line. */ /** @var bool Whether to indent the first line. */
protected $isFirstLineIndented = true; protected $isFirstLineIndented = true;
/** @var int The max length of a line. */ /** @var int|null The max length of a line. */
protected $lineLength = null; protected $lineLength = null;
/** /**
@@ -43,7 +43,8 @@ class Serializer
* repeated. * repeated.
* @param string $indentString The string to indent the comment with. * @param string $indentString The string to indent the comment with.
* @param bool $indentFirstLine Whether to indent the first line. * @param bool $indentFirstLine Whether to indent the first line.
* @param int $lineLength The max length of a line. * @param int|null $lineLength The max length of a line or NULL to
* disable line wrapping.
*/ */
public function __construct( public function __construct(
$indent = 0, $indent = 0,
@@ -135,7 +136,7 @@ class Serializer
* Sets the length of each line in the serialization. Content will be * Sets the length of each line in the serialization. Content will be
* wrapped within this limit. * wrapped within this limit.
* *
* @param int $lineLength The length of each line. NULL to disable line * @param int|null $lineLength The length of each line. NULL to disable line
* wrapping altogether. * wrapping altogether.
* *
* @return $this This serializer object. * @return $this This serializer object.
@@ -149,7 +150,8 @@ class Serializer
/** /**
* Gets the line length. * Gets the line length.
* *
* @return int The length of each line or NULL if line wrapping is disabled. * @return int|null The length of each line or NULL if line wrapping is
* disabled.
*/ */
public function getLineLength() public function getLineLength()
{ {