예제 #1
0
 /**
  * Whether a column exists.
  * @param int|string $column
  * @return bool
  */
 public function hasValue($column) : bool
 {
     return $this->schema->hasHeader($column) && isset($this->values[$this->schema->getHeader($column)->getIndex()]);
 }
예제 #2
0
 public static final function excelSchema() : CSVSchema
 {
     return CSVSchema::create()->withDelimiter(',')->withEnclosure('"')->withEscape("\\")->withSeparator("\r\n");
 }