import CastsAttributes from './CastsAttributes'; import type { Attributes, AttributeKeys } from './HasAttributes'; export default class GuardsAttributes extends CastsAttributes { /** * The attributes that are mass assignable. * * @protected * * @type {string[]} */ protected fillableAttributes: string[]; /** * The attributes that aren't mass assignable * * @protected * * @type {string[]} */ protected guardedAttributes: string[]; /** * The attributes that are mass assignable. * * @type {string[]} */ get fillable(): string[]; /** * The attributes that are not mass assignable. * * @type {string[]} */ get guarded(): string[]; /** * Get the guarded attributes for the model. * * @return {string[]} */ getGuarded(): string[]; /** * Get the fillable attributes for the model. * * @return {string[]} */ getFillable(): string[]; /** * Merge new fillable attributes with existing fillable attributes on the model. * * @param {string[]} fillable * * @return {this} */ mergeFillable(fillable: (AttributeKeys | string)[]): this; /** * Merge new guarded attributes with existing guarded attributes on the model. * * @param {string[]} guarded * * @return {this} */ mergeGuarded(guarded: (AttributeKeys | string)[]): this; /** * Set the fillable attributes for the model. * * @param {string[]} fillable * * @return {this} */ setFillable(fillable: (AttributeKeys | string)[]): this; /** * Set the guarded attributes for the model. * * @param {string[]} guarded * * @return {this} */ setGuarded(guarded: (AttributeKeys | string)[]): this; /** * Determine if the given attribute may be mass assignable. * * @param {string} key */ isFillable(key: AttributeKeys | string): boolean; /** * Determine if the given attribute may not be mass assignable. * * @param {string} key */ isGuarded(key: AttributeKeys | string): boolean; /** * Get the fillable attributes from the given object. * * @param {object} attributes * * @return {object} */ protected getFillableFromObject(attributes: Attributes): Partial; } //# sourceMappingURL=GuardsAttributes.d.ts.map