Overview

Namespaces

  • PHP
  • SimpleExcel
    • Enums
    • Parser
    • Spreadsheet
    • Writer

Classes

  • Cell
  • Workbook
  • Worksheet
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace SimpleExcel\Spreadsheet;
 4: 
 5: use SimpleExcel\Enums\Datatype;
 6: use SimpleExcel\Enums\SimpleExcelException;
 7: 
 8: /**
 9:  * SimpleExcel struct for cell
10:  * 
11:  * @author  Faisalman
12:  * @package SimpleExcel
13:  */
14: 
15: /** define cell struct */
16: class Cell
17: {
18:     /**
19:     * Cell datatype
20:     * 
21:     * @access   public
22:     * @var      int
23:     */
24:     public $datatype;
25: 
26:     /**
27:     * Cell value
28:     * 
29:     * @access   public
30:     * @var      mixed
31:     */
32:     public $value;
33:     
34:     /**
35:     * @param    mixed  $value       Cell value
36:     * @param    string  $datatype   Cell type (optional)
37:     */
38:     public function __construct($value = '', $datatype = Datatype::TEXT) {
39:         $this->value = $value;
40:         $this->datatype = $datatype;
41:     }
42: }
43: 
API documentation generated by ApiGen 2.8.0