class ImportColumn extends Component (View source)

Traits

Conditionable
Tappable

Properties

protected string $evaluationIdentifier
static protected Closure>> $macros from  Macroable
protected string $name
protected string|Closure|null $label
protected bool|Closure $isMappingRequired
protected bool|Closure $isMappingRequiredForNewRecordsOnly
protected int|Closure|null $decimalPlaces
protected bool|Closure $isNumeric
protected bool|Closure $isBoolean
protected bool|Closure $isBlankStateIgnored
protected string|Closure|null $arraySeparator
protected string[] $guesses
protected Closure|null $fillRecordUsing
protected Closure|null $castStateUsing
protected array $dataValidationRules
protected array $nestedRecursiveDataValidationRules
protected Importer|null $importer
protected array $examples
protected string|Closure|null $exampleHeader
protected string|Closure|null $relationship
protected string $resolveRelationshipUsing
protected Model[] $resolvedRelatedRecords
protected string|Closure|null $validationAttribute
protected Htmlable|Closure|null $helperText
protected bool|Closure $isSensitive

Methods

static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
static void
macro(string $name, callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static void
flushMacros()

No description

static mixed
__callStatic(string $method, array $parameters)

No description

mixed
__call(string $method, array $parameters)

No description

static callable|null
getMacro(string $method)

No description

__construct(string $name)

No description

static ImportColumn
make(string $name)

No description

getSelect()

No description

name(string $name)

No description

label(string|Closure|null $label)

No description

example(mixed $example)

No description

examples(mixed $examples)

No description

exampleHeader(string|Closure|null $header)

No description

requiredMapping(bool|Closure $condition = true)

No description

requiredMappingForNewRecordsOnly(bool|Closure $condition = true)

No description

numeric(bool|Closure $condition = true, int|Closure|null $decimalPlaces = null)

No description

helperText(Htmlable|Closure|null $text)

No description

integer(bool|Closure $condition = true)

No description

boolean(bool|Closure $condition = true)

No description

ignoreBlankState(bool|Closure $condition = true)

No description

rules(array|Closure $rules)

No description

nestedRecursiveRules(array|Closure $rules)

No description

array(string|Closure|null $separator = ',')

No description

guess(array|Closure $guesses)

No description

importer(Importer|null $importer)

No description

array
getGuesses()

No description

castStateUsing(Closure|null $callback)

No description

fillRecordUsing(Closure|null $callback)

No description

mixed
castState(mixed $state, array $options)

No description

void
fillRecord(mixed $state)

No description

string
getName()

No description

string
getExampleHeader()

No description

array
getDataValidationRules()

No description

Model|null
resolveRelatedRecord(mixed $state)

No description

array
bool
isNumeric()

No description

bool
isBoolean()

No description

bool
isBlankStateIgnored()

No description

int|null
getDecimalPlaces()

No description

string|null
getArraySeparator()

No description

bool
isArray()

No description

Importer|null
getImporter()

No description

mixed
getExample() deprecated

No description

array
getExamples()

No description

relationship(string|Closure|null $name = null, string|array|Closure|null $resolveUsing = null)

No description

BelongsTo|null
getRelationship()

No description

string|null
getRelationshipName()

No description

Model|null
getRecord()

No description

bool
isMappingRequired()

No description

bool
bool
hasRelationship()

No description

validationAttribute(string|Closure|null $label)

No description

string
getValidationAttribute()

No description

string|null
getLabel()

No description

mixed
castStateItem(mixed $state)

No description

bool
castBooleanStateItem(mixed $state)

No description

int|float
castNumericStateItem(mixed $state)

No description

sensitive(bool|Closure $condition = true)

No description

bool
isSensitive()

No description

Details

static mixed configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $modifyUsing
Closure|null $during
bool $isImportant

Return Value

mixed

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

final __construct(string $name)

No description

Parameters

string $name

static ImportColumn make(string $name)

No description

Parameters

string $name

Return Value

ImportColumn

Select getSelect()

No description

Return Value

Select

ImportColumn name(string $name)

No description

Parameters

string $name

Return Value

ImportColumn

ImportColumn label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

ImportColumn

ImportColumn example(mixed $example)

No description

Parameters

mixed $example

Return Value

ImportColumn

ImportColumn examples(mixed $examples)

No description

Parameters

mixed $examples

Return Value

ImportColumn

ImportColumn exampleHeader(string|Closure|null $header)

No description

Parameters

string|Closure|null $header

Return Value

ImportColumn

ImportColumn requiredMapping(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

ImportColumn requiredMappingForNewRecordsOnly(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

ImportColumn numeric(bool|Closure $condition = true, int|Closure|null $decimalPlaces = null)

No description

Parameters

bool|Closure $condition
int|Closure|null $decimalPlaces

Return Value

ImportColumn

ImportColumn helperText(Htmlable|Closure|null $text)

No description

Parameters

Htmlable|Closure|null $text

Return Value

ImportColumn

ImportColumn integer(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

ImportColumn boolean(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

ImportColumn ignoreBlankState(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

ImportColumn rules(array|Closure $rules)

No description

Parameters

array|Closure $rules

Return Value

ImportColumn

ImportColumn nestedRecursiveRules(array|Closure $rules)

No description

Parameters

array|Closure $rules

Return Value

ImportColumn

ImportColumn array(string|Closure|null $separator = ',')

No description

Parameters

string|Closure|null $separator

Return Value

ImportColumn

ImportColumn guess(array|Closure $guesses)

No description

Parameters

array|Closure $guesses

Return Value

ImportColumn

ImportColumn importer(Importer|null $importer)

No description

Parameters

Importer|null $importer

Return Value

ImportColumn

array getGuesses()

No description

Return Value

array

ImportColumn castStateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

ImportColumn

ImportColumn fillRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

ImportColumn

mixed castState(mixed $state, array $options)

No description

Parameters

mixed $state
array $options

Return Value

mixed

void fillRecord(mixed $state)

No description

Parameters

mixed $state

Return Value

void

string getName()

No description

Return Value

string

string getExampleHeader()

No description

Return Value

string

array getDataValidationRules()

No description

Return Value

array

Model|null resolveRelatedRecord(mixed $state)

No description

Parameters

mixed $state

Return Value

Model|null

array getNestedRecursiveDataValidationRules()

No description

Return Value

array

bool isNumeric()

No description

Return Value

bool

bool isBoolean()

No description

Return Value

bool

bool isBlankStateIgnored()

No description

Return Value

bool

int|null getDecimalPlaces()

No description

Return Value

int|null

string|null getArraySeparator()

No description

Return Value

string|null

bool isArray()

No description

Return Value

bool

Importer|null getImporter()

No description

Return Value

Importer|null

mixed getExample() deprecated

deprecated Use `getExamples()` instead.

No description

Return Value

mixed

array getExamples()

No description

Return Value

array

ImportColumn relationship(string|Closure|null $name = null, string|array|Closure|null $resolveUsing = null)

No description

Parameters

string|Closure|null $name
string|array|Closure|null $resolveUsing

Return Value

ImportColumn

BelongsTo|null getRelationship()

No description

Return Value

BelongsTo|null

string|null getRelationshipName()

No description

Return Value

string|null

Model|null getRecord()

No description

Return Value

Model|null

bool isMappingRequired()

No description

Return Value

bool

bool isMappingRequiredForNewRecordsOnly()

No description

Return Value

bool

bool hasRelationship()

No description

Return Value

bool

ImportColumn validationAttribute(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

ImportColumn

string getValidationAttribute()

No description

Return Value

string

string|null getLabel()

No description

Return Value

string|null

protected mixed castStateItem(mixed $state)

No description

Parameters

mixed $state

Return Value

mixed

protected bool castBooleanStateItem(mixed $state)

No description

Parameters

mixed $state

Return Value

bool

protected int|float castNumericStateItem(mixed $state)

No description

Parameters

mixed $state

Return Value

int|float

ImportColumn sensitive(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

ImportColumn

bool isSensitive()

No description

Return Value

bool