Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace OpenSpout\Writer\Common\Manager;
6
 
7
use OpenSpout\Common\Entity\Row;
8
use OpenSpout\Common\Exception\InvalidArgumentException;
9
use OpenSpout\Common\Exception\IOException;
10
use OpenSpout\Writer\Common\Entity\Worksheet;
11
 
12
/**
13
 * @internal
14
 */
15
interface WorksheetManagerInterface
16
{
17
    /**
18
     * Adds a row to the worksheet.
19
     *
20
     * @param Worksheet $worksheet The worksheet to add the row to
21
     * @param Row       $row       The row to be added
22
     *
23
     * @throws IOException              If the data cannot be written
24
     * @throws InvalidArgumentException If a cell value's type is not supported
25
     */
26
    public function addRow(Worksheet $worksheet, Row $row): void;
27
 
28
    /**
29
     * Prepares the worksheet to accept data.
30
     *
31
     * @param Worksheet $worksheet The worksheet to start
32
     *
33
     * @throws IOException If the sheet data file cannot be opened for writing
34
     */
35
    public function startSheet(Worksheet $worksheet): void;
36
 
37
    /**
38
     * Closes the worksheet.
39
     */
40
    public function close(Worksheet $worksheet): void;
41
}