addFields() addFields(array $fields) : $this Add multiple fields to the schema. Parameters array $fields The fields to add. Returns $this
addField() addField(string $name, string|array $attrs) : $this Adds a field to the schema. Parameters string $name The field name. string|array $attrs The attributes for the field, or the type as a string. Returns $this
removeField() removeField(string $name) : $this Removes a field to the schema. Parameters string $name The field to remove. Returns $this
fields() fields() : array<mixed,string> Get the list of fields in the schema. Returns array<mixed,string> — The list of field names.
field() field(string $name) : null|array Get the attributes for a given field. Parameters string $name The field name. Returns null|array — The attributes for a field, or null.
fieldType() fieldType(string $name) : string|null Get the type of the named field. Parameters string $name The name of the field. Returns string|null — Either the field type or null if the field does not exist.