RenameMapColumnStrategy implements Describable, RenameColumnStrategy
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- describe() : null|Description
- fromDescription() : static
- renames() : array<string|int, string>
Methods
__construct()
public
__construct(array<string|int, string> $renames) : mixed
Parameters
- $renames : array<string|int, string>
-
Map of old_name => new_name
describe()
public
describe() : null|Description
Return values
null|Description —null when this instance cannot cross a process boundary (a live client, a custom collaborator)
fromDescription()
public
static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
- $data : array<string|int, mixed>
- $rebuild : Rebuild
Return values
staticrenames()
public
renames(Schema $schema) : array<string|int, string>
Parameters
- $schema : Schema
Return values
array<string|int, string> —map of current_name => new_name; PHP casts a numeric name to an int key, empty when nothing is renamed