You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/lib/aliyun-log-php-sdk-master/Aliyun/Log/Models/OssShipperCsvStorage.php

107 lines
2.0 KiB
PHP

<?php
/**
* Copyright (C) Alibaba Cloud Computing
* All rights reserved
*/
class Aliyun_Log_Models_OssShipperCsvStorage extends Aliyun_Log_Models_OssShipperStorage{
private $columns;
private $delimiter = ',';
private $quote = '';
private $nullIdentifier = '';
private $header = false;
/**
* @return mixed
*/
public function getColumns()
{
return $this->columns;
}
/**
* @param mixed $columns
*/
public function setColumns($columns)
{
$this->columns = $columns;
}
/**
* @return string
*/
public function getDelimiter(): string
{
return $this->delimiter;
}
/**
* @param string $delimiter
*/
public function setDelimiter(string $delimiter)
{
$this->delimiter = $delimiter;
}
/**
* @return string
*/
public function getQuote(): string
{
return $this->quote;
}
/**
* @param string $quote
*/
public function setQuote(string $quote)
{
$this->quote = $quote;
}
/**
* @return string
*/
public function getNullIdentifier(): string
{
return $this->nullIdentifier;
}
/**
* @param string $nullIdentifier
*/
public function setNullIdentifier(string $nullIdentifier)
{
$this->nullIdentifier = $nullIdentifier;
}
/**
* @return bool
*/
public function isHeader(): bool
{
return $this->header;
}
/**
* @param bool $header
*/
public function setHeader(bool $header)
{
$this->header = $header;
}
public function to_json_object(){
$detail = array(
'columns' => $this->columns,
'delimiter' => $this->delimiter,
'quote' => $this->quote,
'nullIdentifier' => $this->nullIdentifier,
'header' => $this->header
);
return array(
'detail' => $detail,
'format' => parent::getFormat()
);
}
}