0 follower

Interface Yiisoft\Data\Db\FieldMapper\FieldMapperInterface

Implemented byYiisoft\Data\Db\FieldMapper\ArrayFieldMapper

Maps field names to database column names or expressions.

Public Methods

Hide inherited methods

Method Description Defined By
map() Maps a field name to a database column name or expression. Yiisoft\Data\Db\FieldMapper\FieldMapperInterface

Method Details

Hide inherited methods

map() public abstract method

Maps a field name to a database column name or expression.

public abstract \Yiisoft\Db\Expression\ExpressionInterface|string map ( string $field )
$field string

The field name to map.

return \Yiisoft\Db\Expression\ExpressionInterface|string

The mapped column name or expression.

                public function map(string $field): string|ExpressionInterface;