Exemplo n.º 1
0
 /**
  * Read the row pattern to determine which columns are dynamic, set the collection size
  *
  * @param Pattern $rowPattern
  * @param int $count how many records to generate
  */
 public function __construct(Pattern $rowPattern, $count)
 {
     $this->_pattern = $rowPattern;
     $this->_count = $count;
     $this->_patternRowsCount = $this->_pattern->getRowsCount();
     $this->_limit = (int) $count * $this->_patternRowsCount;
     parent::__construct($this->_pattern->getHeaders());
 }