Added @api tag for documentation
This commit is contained in:
parent
118810de22
commit
f8c39287ad
@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Box\Spout\Common\Exception;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class BadUsageException
|
|
||||||
*
|
|
||||||
* @package Box\Spout\Common\Exception
|
|
||||||
*/
|
|
||||||
class BadUsageException extends SpoutException
|
|
||||||
{
|
|
||||||
}
|
|
@ -5,6 +5,7 @@ namespace Box\Spout\Common\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class EncodingConversionException
|
* Class EncodingConversionException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Common\Exception
|
* @package Box\Spout\Common\Exception
|
||||||
*/
|
*/
|
||||||
class EncodingConversionException extends SpoutException
|
class EncodingConversionException extends SpoutException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Common\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class IOException
|
* Class IOException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Common\Exception
|
* @package Box\Spout\Common\Exception
|
||||||
*/
|
*/
|
||||||
class IOException extends SpoutException
|
class IOException extends SpoutException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Common\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class InvalidArgumentException
|
* Class InvalidArgumentException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Common\Exception
|
* @package Box\Spout\Common\Exception
|
||||||
*/
|
*/
|
||||||
class InvalidArgumentException extends SpoutException
|
class InvalidArgumentException extends SpoutException
|
||||||
|
@ -6,6 +6,7 @@ namespace Box\Spout\Common\Exception;
|
|||||||
* Class SpoutException
|
* Class SpoutException
|
||||||
*
|
*
|
||||||
* @package Box\Spout\Common\Exception
|
* @package Box\Spout\Common\Exception
|
||||||
|
* @abstract
|
||||||
*/
|
*/
|
||||||
abstract class SpoutException extends \Exception
|
abstract class SpoutException extends \Exception
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Common\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class UnsupportedTypeException
|
* Class UnsupportedTypeException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Common\Exception
|
* @package Box\Spout\Common\Exception
|
||||||
*/
|
*/
|
||||||
class UnsupportedTypeException extends SpoutException
|
class UnsupportedTypeException extends SpoutException
|
||||||
|
@ -5,6 +5,8 @@ namespace Box\Spout\Common;
|
|||||||
/**
|
/**
|
||||||
* Class Type
|
* Class Type
|
||||||
* This class references the supported types
|
* This class references the supported types
|
||||||
|
*
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
abstract class Type
|
abstract class Type
|
||||||
{
|
{
|
||||||
|
@ -55,6 +55,7 @@ abstract class AbstractReader implements ReaderInterface
|
|||||||
* Prepares the reader to read the given file. It also makes sure
|
* Prepares the reader to read the given file. It also makes sure
|
||||||
* that the file exists and is readable.
|
* that the file exists and is readable.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $filePath Path of the file to be read
|
* @param string $filePath Path of the file to be read
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Box\Spout\Common\Exception\IOException If the file at the given path does not exist, is not readable or is corrupted
|
* @throws \Box\Spout\Common\Exception\IOException If the file at the given path does not exist, is not readable or is corrupted
|
||||||
@ -92,6 +93,7 @@ abstract class AbstractReader implements ReaderInterface
|
|||||||
/**
|
/**
|
||||||
* Returns an iterator to iterate over sheets.
|
* Returns an iterator to iterate over sheets.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return \Iterator To iterate over sheets
|
* @return \Iterator To iterate over sheets
|
||||||
* @throws \Box\Spout\Reader\Exception\ReaderNotOpenedException If called before opening the reader
|
* @throws \Box\Spout\Reader\Exception\ReaderNotOpenedException If called before opening the reader
|
||||||
*/
|
*/
|
||||||
@ -107,6 +109,7 @@ abstract class AbstractReader implements ReaderInterface
|
|||||||
/**
|
/**
|
||||||
* Closes the reader, preventing any additional reading
|
* Closes the reader, preventing any additional reading
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
|
@ -27,6 +27,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return RowIterator
|
* @return RowIterator
|
||||||
*/
|
*/
|
||||||
public function getRowIterator()
|
public function getRowIterator()
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Reader\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class IteratorNotRewindableException
|
* Class IteratorNotRewindableException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Reader\Exception
|
* @package Box\Spout\Reader\Exception
|
||||||
*/
|
*/
|
||||||
class IteratorNotRewindableException extends ReaderException
|
class IteratorNotRewindableException extends ReaderException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Reader\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class NoSheetsFoundException
|
* Class NoSheetsFoundException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Reader\Exception
|
* @package Box\Spout\Reader\Exception
|
||||||
*/
|
*/
|
||||||
class NoSheetsFoundException extends ReaderException
|
class NoSheetsFoundException extends ReaderException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Reader\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class ReaderNotOpenedException
|
* Class ReaderNotOpenedException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Reader\Exception
|
* @package Box\Spout\Reader\Exception
|
||||||
*/
|
*/
|
||||||
class ReaderNotOpenedException extends ReaderException
|
class ReaderNotOpenedException extends ReaderException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Reader\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class SharedStringNotFoundException
|
* Class SharedStringNotFoundException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Reader\Exception
|
* @package Box\Spout\Reader\Exception
|
||||||
*/
|
*/
|
||||||
class SharedStringNotFoundException extends ReaderException
|
class SharedStringNotFoundException extends ReaderException
|
||||||
|
@ -38,6 +38,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return RowIterator
|
* @return RowIterator
|
||||||
*/
|
*/
|
||||||
public function getRowIterator()
|
public function getRowIterator()
|
||||||
@ -46,6 +47,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return int Index of the sheet, based on order of creation (zero-based)
|
* @return int Index of the sheet, based on order of creation (zero-based)
|
||||||
*/
|
*/
|
||||||
public function getIndex()
|
public function getIndex()
|
||||||
@ -54,6 +56,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return string Name of the sheet
|
* @return string Name of the sheet
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
|
@ -18,6 +18,7 @@ class ReaderFactory
|
|||||||
/**
|
/**
|
||||||
* This creates an instance of the appropriate reader, given the type of the file to be read
|
* This creates an instance of the appropriate reader, given the type of the file to be read
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $readerType Type of the reader to instantiate
|
* @param string $readerType Type of the reader to instantiate
|
||||||
* @return ReaderInterface
|
* @return ReaderInterface
|
||||||
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
|
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
|
||||||
|
@ -36,6 +36,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return RowIterator
|
* @return RowIterator
|
||||||
*/
|
*/
|
||||||
public function getRowIterator()
|
public function getRowIterator()
|
||||||
@ -44,6 +45,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return int Index of the sheet, based on order of creation (zero-based)
|
* @return int Index of the sheet, based on order of creation (zero-based)
|
||||||
*/
|
*/
|
||||||
public function getIndex()
|
public function getIndex()
|
||||||
@ -52,6 +54,7 @@ class Sheet implements SheetInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return string Name of the sheet
|
* @return string Name of the sheet
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
|
@ -24,6 +24,7 @@ abstract class AbstractMultiSheetsWriter extends AbstractWriter
|
|||||||
* Sets whether new sheets should be automatically created when the max rows limit per sheet is reached.
|
* Sets whether new sheets should be automatically created when the max rows limit per sheet is reached.
|
||||||
* This must be set before opening the writer.
|
* This must be set before opening the writer.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param bool $shouldCreateNewSheetsAutomatically Whether new sheets should be automatically created when the max rows limit per sheet is reached
|
* @param bool $shouldCreateNewSheetsAutomatically Whether new sheets should be automatically created when the max rows limit per sheet is reached
|
||||||
* @return AbstractMultiSheetsWriter
|
* @return AbstractMultiSheetsWriter
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
||||||
@ -39,6 +40,7 @@ abstract class AbstractMultiSheetsWriter extends AbstractWriter
|
|||||||
/**
|
/**
|
||||||
* Returns all the workbook's sheets
|
* Returns all the workbook's sheets
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return Common\Sheet[] All the workbook's sheets
|
* @return Common\Sheet[] All the workbook's sheets
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
||||||
*/
|
*/
|
||||||
@ -60,6 +62,7 @@ abstract class AbstractMultiSheetsWriter extends AbstractWriter
|
|||||||
/**
|
/**
|
||||||
* Creates a new sheet and make it the current sheet. The data will now be written to this sheet.
|
* Creates a new sheet and make it the current sheet. The data will now be written to this sheet.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return Common\Sheet The created sheet
|
* @return Common\Sheet The created sheet
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
||||||
*/
|
*/
|
||||||
@ -74,6 +77,7 @@ abstract class AbstractMultiSheetsWriter extends AbstractWriter
|
|||||||
/**
|
/**
|
||||||
* Returns the current sheet
|
* Returns the current sheet
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return Common\Sheet The current sheet
|
* @return Common\Sheet The current sheet
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
||||||
*/
|
*/
|
||||||
@ -87,6 +91,7 @@ abstract class AbstractMultiSheetsWriter extends AbstractWriter
|
|||||||
* Sets the given sheet as the current one. New data will be written to this sheet.
|
* Sets the given sheet as the current one. New data will be written to this sheet.
|
||||||
* The writing will resume where it stopped (i.e. data won't be truncated).
|
* The writing will resume where it stopped (i.e. data won't be truncated).
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param Common\Sheet $sheet The sheet to set as current
|
* @param Common\Sheet $sheet The sheet to set as current
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
|
||||||
|
@ -85,6 +85,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
* Inits the writer and opens it to accept data.
|
* Inits the writer and opens it to accept data.
|
||||||
* By using this method, the data will be written to a file.
|
* By using this method, the data will be written to a file.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $outputFilePath Path of the output file that will contain the data
|
* @param string $outputFilePath Path of the output file that will contain the data
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
* @throws \Box\Spout\Common\Exception\IOException If the writer cannot be opened or if the given path is not writable
|
* @throws \Box\Spout\Common\Exception\IOException If the writer cannot be opened or if the given path is not writable
|
||||||
@ -108,6 +109,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
*
|
*
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $outputFileName Name of the output file that will contain the data. If a path is passed in, only the file name will be kept
|
* @param string $outputFileName Name of the output file that will contain the data. If a path is passed in, only the file name will be kept
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
* @throws \Box\Spout\Common\Exception\IOException If the writer cannot be opened
|
* @throws \Box\Spout\Common\Exception\IOException If the writer cannot be opened
|
||||||
@ -174,7 +176,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
* @param array $dataRow Array containing data to be streamed.
|
* @param array $dataRow Array containing data to be streamed.
|
||||||
* If empty, no data is added (i.e. not even as a blank row)
|
* If empty, no data is added (i.e. not even as a blank row)
|
||||||
* Example: $dataRow = ['data1', 1234, null, '', 'data5', false];
|
* Example: $dataRow = ['data1', 1234, null, '', 'data5', false];
|
||||||
*
|
* @api
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If this function is called before opening the writer
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If this function is called before opening the writer
|
||||||
* @throws \Box\Spout\Common\Exception\IOException If unable to write data
|
* @throws \Box\Spout\Common\Exception\IOException If unable to write data
|
||||||
@ -197,6 +199,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
* Write given data to the output and apply the given style.
|
* Write given data to the output and apply the given style.
|
||||||
* @see addRow
|
* @see addRow
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param array $dataRow Array of array containing data to be streamed.
|
* @param array $dataRow Array of array containing data to be streamed.
|
||||||
* @param Style\Style $style Style to be applied to the row.
|
* @param Style\Style $style Style to be applied to the row.
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
@ -220,13 +223,13 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
/**
|
/**
|
||||||
* Write given data to the output. New data will be appended to end of stream.
|
* Write given data to the output. New data will be appended to end of stream.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param array $dataRows Array of array containing data to be streamed.
|
* @param array $dataRows Array of array containing data to be streamed.
|
||||||
* If a row is empty, it won't be added (i.e. not even as a blank row)
|
* If a row is empty, it won't be added (i.e. not even as a blank row)
|
||||||
* Example: $dataRows = [
|
* Example: $dataRows = [
|
||||||
* ['data11', 12, , '', 'data13'],
|
* ['data11', 12, , '', 'data13'],
|
||||||
* ['data21', 'data22', null, false],
|
* ['data21', 'data22', null, false],
|
||||||
* ];
|
* ];
|
||||||
*
|
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
* @throws \Box\Spout\Common\Exception\InvalidArgumentException If the input param is not valid
|
* @throws \Box\Spout\Common\Exception\InvalidArgumentException If the input param is not valid
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If this function is called before opening the writer
|
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException If this function is called before opening the writer
|
||||||
@ -251,6 +254,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
* Write given data to the output and apply the given style.
|
* Write given data to the output and apply the given style.
|
||||||
* @see addRows
|
* @see addRows
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param array $dataRows Array of array containing data to be streamed.
|
* @param array $dataRows Array of array containing data to be streamed.
|
||||||
* @param Style\Style $style Style to be applied to the rows.
|
* @param Style\Style $style Style to be applied to the rows.
|
||||||
* @return AbstractWriter
|
* @return AbstractWriter
|
||||||
@ -309,6 +313,7 @@ abstract class AbstractWriter implements WriterInterface
|
|||||||
* Closes the writer. This will close the streamer as well, preventing new data
|
* Closes the writer. This will close the streamer as well, preventing new data
|
||||||
* to be written to the file.
|
* to be written to the file.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
|
@ -32,6 +32,7 @@ class Writer extends AbstractWriter
|
|||||||
/**
|
/**
|
||||||
* Sets the field delimiter for the CSV
|
* Sets the field delimiter for the CSV
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $fieldDelimiter Character that delimits fields
|
* @param string $fieldDelimiter Character that delimits fields
|
||||||
* @return Writer
|
* @return Writer
|
||||||
*/
|
*/
|
||||||
@ -44,6 +45,7 @@ class Writer extends AbstractWriter
|
|||||||
/**
|
/**
|
||||||
* Sets the field enclosure for the CSV
|
* Sets the field enclosure for the CSV
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $fieldEnclosure Character that enclose fields
|
* @param string $fieldEnclosure Character that enclose fields
|
||||||
* @return Writer
|
* @return Writer
|
||||||
*/
|
*/
|
||||||
|
@ -44,6 +44,7 @@ class Sheet
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return int Index of the sheet, based on order of creation (zero-based)
|
* @return int Index of the sheet, based on order of creation (zero-based)
|
||||||
*/
|
*/
|
||||||
public function getIndex()
|
public function getIndex()
|
||||||
@ -52,6 +53,7 @@ class Sheet
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @api
|
||||||
* @return string Name of the sheet
|
* @return string Name of the sheet
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
@ -66,6 +68,7 @@ class Sheet
|
|||||||
* - it should not contain these characters: \ / ? * : [ or ]
|
* - it should not contain these characters: \ / ? * : [ or ]
|
||||||
* - it should be unique
|
* - it should be unique
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $name Name of the sheet
|
* @param string $name Name of the sheet
|
||||||
* @return Sheet
|
* @return Sheet
|
||||||
* @throws \Box\Spout\Writer\Exception\InvalidSheetNameException If the sheet's name is invalid.
|
* @throws \Box\Spout\Writer\Exception\InvalidSheetNameException If the sheet's name is invalid.
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Writer\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class InvalidColorException
|
* Class InvalidColorException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Writer\Exception
|
* @package Box\Spout\Writer\Exception
|
||||||
*/
|
*/
|
||||||
class InvalidColorException extends WriterException
|
class InvalidColorException extends WriterException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Writer\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class InvalidSheetNameException
|
* Class InvalidSheetNameException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Writer\Exception
|
* @package Box\Spout\Writer\Exception
|
||||||
*/
|
*/
|
||||||
class InvalidSheetNameException extends WriterException
|
class InvalidSheetNameException extends WriterException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Writer\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class SheetNotFoundException
|
* Class SheetNotFoundException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Writer\Exception
|
* @package Box\Spout\Writer\Exception
|
||||||
*/
|
*/
|
||||||
class SheetNotFoundException extends WriterException
|
class SheetNotFoundException extends WriterException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Writer\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class WriterAlreadyOpenedException
|
* Class WriterAlreadyOpenedException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Writer\Exception
|
* @package Box\Spout\Writer\Exception
|
||||||
*/
|
*/
|
||||||
class WriterAlreadyOpenedException extends WriterException
|
class WriterAlreadyOpenedException extends WriterException
|
||||||
|
@ -5,6 +5,7 @@ namespace Box\Spout\Writer\Exception;
|
|||||||
/**
|
/**
|
||||||
* Class WriterNotOpenedException
|
* Class WriterNotOpenedException
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @package Box\Spout\Writer\Exception
|
* @package Box\Spout\Writer\Exception
|
||||||
*/
|
*/
|
||||||
class WriterNotOpenedException extends WriterException
|
class WriterNotOpenedException extends WriterException
|
||||||
|
@ -27,6 +27,7 @@ class Writer extends AbstractMultiSheetsWriter
|
|||||||
* Sets a custom temporary folder for creating intermediate files/folders.
|
* Sets a custom temporary folder for creating intermediate files/folders.
|
||||||
* This must be set before opening the writer.
|
* This must be set before opening the writer.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $tempFolder Temporary folder where the files to create the ODS will be stored
|
* @param string $tempFolder Temporary folder where the files to create the ODS will be stored
|
||||||
* @return Writer
|
* @return Writer
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
||||||
|
@ -29,6 +29,7 @@ class Color
|
|||||||
/**
|
/**
|
||||||
* Returns an RGB color from R, G and B values
|
* Returns an RGB color from R, G and B values
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param int $red Red component, 0 - 255
|
* @param int $red Red component, 0 - 255
|
||||||
* @param int $green Green component, 0 - 255
|
* @param int $green Green component, 0 - 255
|
||||||
* @param int $blue Blue component, 0 - 255
|
* @param int $blue Blue component, 0 - 255
|
||||||
|
@ -24,6 +24,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Makes the font bold.
|
* Makes the font bold.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
public function setFontBold()
|
public function setFontBold()
|
||||||
@ -35,6 +36,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Makes the font italic.
|
* Makes the font italic.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
public function setFontItalic()
|
public function setFontItalic()
|
||||||
@ -46,6 +48,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Makes the font underlined.
|
* Makes the font underlined.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
public function setFontUnderline()
|
public function setFontUnderline()
|
||||||
@ -57,6 +60,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Makes the font struck through.
|
* Makes the font struck through.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
public function setFontStrikethrough()
|
public function setFontStrikethrough()
|
||||||
@ -68,6 +72,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Sets the font size.
|
* Sets the font size.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param int $fontSize Font size, in pixels
|
* @param int $fontSize Font size, in pixels
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
@ -80,6 +85,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Sets the font color.
|
* Sets the font color.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $fontColor ARGB color (@see Color)
|
* @param string $fontColor ARGB color (@see Color)
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
@ -92,6 +98,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Sets the font name.
|
* Sets the font name.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $fontName Name of the font to use
|
* @param string $fontName Name of the font to use
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
@ -105,6 +112,7 @@ class StyleBuilder
|
|||||||
* Makes the text wrap in the cell if it's too long or
|
* Makes the text wrap in the cell if it's too long or
|
||||||
* on multiple lines.
|
* on multiple lines.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return StyleBuilder
|
* @return StyleBuilder
|
||||||
*/
|
*/
|
||||||
public function setShouldWrapText()
|
public function setShouldWrapText()
|
||||||
@ -116,6 +124,7 @@ class StyleBuilder
|
|||||||
/**
|
/**
|
||||||
* Returns the configured style. The style is cached and can be reused.
|
* Returns the configured style. The style is cached and can be reused.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @return Style
|
* @return Style
|
||||||
*/
|
*/
|
||||||
public function build()
|
public function build()
|
||||||
|
@ -18,6 +18,7 @@ class WriterFactory
|
|||||||
/**
|
/**
|
||||||
* This creates an instance of the appropriate writer, given the type of the file to be read
|
* This creates an instance of the appropriate writer, given the type of the file to be read
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $writerType Type of the writer to instantiate
|
* @param string $writerType Type of the writer to instantiate
|
||||||
* @return WriterInterface
|
* @return WriterInterface
|
||||||
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
|
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
|
||||||
|
@ -34,6 +34,7 @@ class Writer extends AbstractMultiSheetsWriter
|
|||||||
* Sets a custom temporary folder for creating intermediate files/folders.
|
* Sets a custom temporary folder for creating intermediate files/folders.
|
||||||
* This must be set before opening the writer.
|
* This must be set before opening the writer.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param string $tempFolder Temporary folder where the files to create the XLSX will be stored
|
* @param string $tempFolder Temporary folder where the files to create the XLSX will be stored
|
||||||
* @return Writer
|
* @return Writer
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
||||||
@ -50,6 +51,7 @@ class Writer extends AbstractMultiSheetsWriter
|
|||||||
* Use inline string to be more memory efficient. If set to false, it will use shared strings.
|
* Use inline string to be more memory efficient. If set to false, it will use shared strings.
|
||||||
* This must be set before opening the writer.
|
* This must be set before opening the writer.
|
||||||
*
|
*
|
||||||
|
* @api
|
||||||
* @param bool $shouldUseInlineStrings Whether inline or shared strings should be used
|
* @param bool $shouldUseInlineStrings Whether inline or shared strings should be used
|
||||||
* @return Writer
|
* @return Writer
|
||||||
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
* @throws \Box\Spout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
|
||||||
|
Loading…
x
Reference in New Issue
Block a user