/** * Get the return type to use when returning objects from the set * * @return string */ public function getReturnType() { return $this->zfResultSet->getReturnType(); }
public function testReturnTypeIsObjectByDefault() { $this->assertEquals(ResultSet::TYPE_ARRAYOBJECT, $this->resultSet->getReturnType()); }
public function testReturnTypeMayBeSetToArray() { $this->set->setReturnType(ResultSet::TYPE_ARRAY); $this->assertEquals(ResultSet::TYPE_ARRAY, $this->set->getReturnType()); }