/** * Creates a row instance. * @param array $data * @param Result $result */ public function __construct(array $data, Result $result) { $this->data = $data; $this->connection = $result->getConnection(); $this->table = $result->getTable(); $this->primary = $result->getPrimaryKey(); $this->frozen = !$this->table || !$this->primary || !isset($this->data[$this->primary]); }
public function testGetTable() { $result = new Result($this->connection, new Result($this->connection, 'foo')); $this->assertNull($result->getTable()); }