Prado\Data\SqlMap\Configuration\TSqlMapStatement::createInstanceOf PHP Method

createInstanceOf() protected method

Create a new instance of a given type.
protected createInstanceOf ( $registry, $type, $row = null ) : mixed
return mixed result object.
    protected function createInstanceOf($registry, $type, $row = null)
    {
        $handler = $registry->getTypeHandler($type);
        if ($handler !== null) {
            return $handler->createNewInstance($row);
        } else {
            return $registry->createInstanceOf($type);
        }
    }