Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit b25244c

Browse files
Merge pull request wp-cli#76 from dpiquet/master
Added countRows method to Table.php
2 parents c0ac9ef + b12896e commit b25244c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/cli/Table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,8 @@ public function setRows(array $rows) {
224224
$this->addRow($row);
225225
}
226226
}
227+
228+
public function countRows() {
229+
return count($this->_rows);
230+
}
227231
}

0 commit comments

Comments
 (0)