Amp\Mysql\Stmt::__construct PHP Method

__construct() public method

public __construct ( Amp\Mysql\Connection $conn, $query, $stmtId, $named, ResultProxy $result )
$conn Amp\Mysql\Connection
$result ResultProxy
    public function __construct(Connection $conn, $query, $stmtId, $named, ResultProxy $result)
    {
        $this->conn = $conn;
        $this->query = $query;
        $this->stmtId = $stmtId;
        $this->result = $result;
        $this->numParamCount = $this->paramCount = $this->result->columnsToFetch;
        $this->byNamed = $named;
        foreach ($named as $name => $ids) {
            foreach ($ids as $id) {
                $this->named[$id] = $name;
                $this->numParamCount--;
            }
        }
    }