Pheasant\Collection::hydrate PHP Method

hydrate() public method

Hydrates a row to a DomainObject
public hydrate ( $row )
    public function hydrate($row)
    {
        $hydrated = $this->_schema->hydrate($row);
        // apply any eager-loaded includes
        foreach ($this->_includes as $prop => $includer) {
            $hydrated->override($prop, function ($prop, $obj) use($includer) {
                return $includer->get($obj, $prop);
            });
        }
        return $hydrated;
    }