Open Data Catalog v2.0.0
TableSummary.php
Go to the documentation of this file.
1 <?php
2 
4 
10 class TableSummary implements \JsonSerializable {
11  public $numOfColumns;
12  public $columns;
13  public $numOfRows;
14 
18  public function __construct(int $numOfColumns, array $columns, int $numOfRows) {
19  $this->numOfColumns = $numOfColumns;
20  $this->columns = $columns;
21  $this->numOfRows = $numOfRows;
22  }
23 
29  public function jsonSerialize() {
30  return [
31  'numOfColumns' => $this->numOfColumns,
32  'columns' => $this->columns,
33  'numOfRows' => $this->numOfRows,
34  ];
35  }
36 
37 }
Drupal\datastore\Storage\TableSummary\$numOfRows
$numOfRows
Definition: TableSummary.php:13
Drupal\datastore\Storage\TableSummary\jsonSerialize
jsonSerialize()
Definition: TableSummary.php:29
Drupal\datastore\Storage\TableSummary\$numOfColumns
$numOfColumns
Definition: TableSummary.php:11
Drupal\datastore\Storage\TableSummary\$columns
$columns
Definition: TableSummary.php:12
Drupal\datastore\Storage\TableSummary
Definition: TableSummary.php:10
Drupal\datastore\Storage\TableSummary\__construct
__construct(int $numOfColumns, array $columns, int $numOfRows)
Definition: TableSummary.php:18
Drupal\datastore\Storage
Definition: DatabaseConnectionFactory.php:3