Psecio\Gatekeeper\DataSource\Mysql::setup PHP Method

setup() public method

"Set up" the needed values for the database requests (for binding to queries)
public setup ( array $data ) : array
$data array Data to "set up"
return array Set containing the columns and bind values
    public function setup(array $data)
    {
        $bind = array();
        foreach ($data as $column => $value) {
            $bind[$column] = ':' . $column;
        }
        return array(array_keys($data), $bind);
    }