Pheasant\Schema::marshal PHP Method

marshal() public method

Converts an array using each columns type object to database format
public marshal ( $row ) : array
return array
    public function marshal($row)
    {
        foreach ($this->_props as $key => $prop) {
            if (isset($row[$key])) {
                $row[$key] = $prop->type->marshal($row[$key]);
            }
        }
        return $row;
    }