From 7faee16e5998877f4c9917fddc0c85c3ce3ce798 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 11 Dec 2022 16:19:40 +0100 Subject: [PATCH] Restored `Table\Column` documentation broken by #12 --- src/Table/Column.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Table/Column.php b/src/Table/Column.php index fe01738..80e3f31 100644 --- a/src/Table/Column.php +++ b/src/Table/Column.php @@ -89,7 +89,7 @@ public function __construct($content = null, $align = null, $colSpan = null, $ch * * @param string $content Content of the column * @param string $charset The charset of the content - * @throws Exception\InvalidArgumentException + * @throws Exception\InvalidArgumentException When $content is not a string. * @return Column */ public function setContent($content, $charset = null) @@ -123,7 +123,7 @@ public function setContent($content, $charset = null) * Set the align * * @param string $align Align of the column - * @throws Exception\OutOfBoundsException + * @throws Exception\OutOfBoundsException When supplied align is invalid. * @return Column */ public function setAlign($align) @@ -141,7 +141,7 @@ public function setAlign($align) * Set the colspan * * @param int $colSpan - * @throws Exception\InvalidArgumentException + * @throws Exception\InvalidArgumentException When $colSpan is smaller than 1. * @return Column */ public function setColSpan($colSpan) @@ -170,8 +170,8 @@ public function getColSpan() * * @param int $columnWidth The width of the column * @param int $padding The padding for the column - * @throws Exception\InvalidArgumentException - * @throws Exception\OutOfBoundsException + * @throws Exception\InvalidArgumentException When $columnWidth is lower than 1. + * @throws Exception\OutOfBoundsException When padding is greater than columnWidth. * @return string */ public function render($columnWidth, $padding = 0)