class Values extends Summarizer (View source)

Traits

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
static protected Closure>> $macros from  Macroable
protected string $view
protected string|Closure|null $defaultView from  ViewComponent
protected array<string,mixed> $viewData from  ViewComponent
protected string $viewIdentifier from  Summarizer
protected Column $column from  BelongsToColumn
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected Closure|null $formatStateUsing from  CanFormatState
protected string|Closure|null $placeholder from  CanFormatState
protected Htmlable|Closure|null $prefix from  CanFormatState
protected Htmlable|Closure|null $suffix from  CanFormatState
protected bool|Closure $isHtml from  CanFormatState
protected bool|Closure $isMarkdown from  CanFormatState
protected string|Closure|null $label from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected Closure|null $modifyQueryUsing from  InteractsWithTableQuery
protected Builder|null $query from  InteractsWithTableQuery
protected array $extraAttributes from  HasExtraAttributes
protected string|null $id from  Summarizer
protected array<string,mixed> $selectedState from  Summarizer
protected Closure|null $using from  Summarizer
protected bool|Closure $isBulleted

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

view(string|null $view, array $viewData = [])

No description

defaultView(string|Closure|null $view)

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string|null
getDefaultView()

No description

string
toHtml()

No description

View
render()

No description

column(Column $column)

No description

getColumn()

No description

getTable()

No description

getLivewire()

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

bool
isVisible()

No description

formatStateUsing(Closure|null $callback)

No description

limit(int $length = 100, string|null $end = '...')

No description

money(string|Closure|null $currency = null, int $divideBy = 0, string|Closure|null $locale = null)

No description

numeric(int|Closure|null $decimalPlaces = null, ArgumentValue $decimalSeparator = ArgumentValue::Default, ArgumentValue $thousandsSeparator = ArgumentValue::Default, int|Closure|null $maxDecimalPlaces = null, string|Closure|null $locale = null)

No description

placeholder(string|Closure|null $placeholder)

No description

markdown(bool|Closure $condition = true)

No description

prefix(Htmlable|Closure|null $prefix)

No description

suffix(Htmlable|Closure|null $suffix)

No description

html(bool|Closure $condition = true)

No description

mixed
formatState(mixed $state)

No description

bool
isHtml()

No description

Htmlable|null
getPrefix()

No description

Htmlable|null
getSuffix()

No description

bool
isMarkdown()

No description

label(string|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
string|null
getLabel()

No description

from  HasLabel
string|null
getDefaultLabel()

No description

from  HasLabel
query(Builder|Closure|null $query)

No description

Builder|null
getQuery()

No description

bool
hasQueryModification()

No description

extraAttributes(array|Closure $attributes, bool $merge = false)

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

__construct(string|null $id = null)

No description

static Summarizer
make(string|null $id = null)

No description

id(string|null $id)

No description

using(Closure|null $using)

No description

selectedState(array $state)

No description

mixed
getState()

No description

mixed
getSelectedState()

No description

mixed
summarize(Builder $query, string $attribute)

No description

array
getSelectStatements(string $column)

No description

string|null
getId()

No description

bulleted(bool|Closure $condition = true)

No description

bool
isBulleted()

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

ViewComponent view(string|null $view, array $viewData = [])

No description

Parameters

string|null $view
array $viewData

Return Value

ViewComponent

ViewComponent defaultView(string|Closure|null $view)

No description

Parameters

string|Closure|null $view

Return Value

ViewComponent

protected array extractPublicMethods()

No description

Return Value

array

ViewComponent viewData(array $data)

No description

Parameters

array $data

Return Value

ViewComponent

string getView()

No description

Return Value

string

string|null getDefaultView()

No description

Return Value

string|null

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

BelongsToColumn column(Column $column)

No description

Parameters

Column $column

Return Value

BelongsToColumn

Column getColumn()

No description

Return Value

Column

Table getTable()

No description

Return Value

Table

HasTable getLivewire()

No description

Return Value

HasTable

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

CanFormatState formatStateUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

CanFormatState

CanFormatState limit(int $length = 100, string|null $end = '...')

No description

Parameters

int $length
string|null $end

Return Value

CanFormatState

CanFormatState money(string|Closure|null $currency = null, int $divideBy = 0, string|Closure|null $locale = null)

No description

Parameters

string|Closure|null $currency
int $divideBy
string|Closure|null $locale

Return Value

CanFormatState

CanFormatState numeric(int|Closure|null $decimalPlaces = null, ArgumentValue $decimalSeparator = ArgumentValue::Default, ArgumentValue $thousandsSeparator = ArgumentValue::Default, int|Closure|null $maxDecimalPlaces = null, string|Closure|null $locale = null)

No description

Parameters

int|Closure|null $decimalPlaces
ArgumentValue $decimalSeparator
ArgumentValue $thousandsSeparator
int|Closure|null $maxDecimalPlaces
string|Closure|null $locale

Return Value

CanFormatState

CanFormatState placeholder(string|Closure|null $placeholder)

No description

Parameters

string|Closure|null $placeholder

Return Value

CanFormatState

CanFormatState markdown(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanFormatState

CanFormatState prefix(Htmlable|Closure|null $prefix)

No description

Parameters

Htmlable|Closure|null $prefix

Return Value

CanFormatState

CanFormatState suffix(Htmlable|Closure|null $suffix)

No description

Parameters

Htmlable|Closure|null $suffix

Return Value

CanFormatState

CanFormatState html(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanFormatState

mixed formatState(mixed $state)

No description

Parameters

mixed $state

Return Value

mixed

bool isHtml()

No description

Return Value

bool

Htmlable|null getPrefix()

No description

Return Value

Htmlable|null

Htmlable|null getSuffix()

No description

Return Value

Htmlable|null

bool isMarkdown()

No description

Return Value

bool

HasLabel label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

string|null getLabel()

No description

Return Value

string|null

string|null getDefaultLabel()

No description

Return Value

string|null

InteractsWithTableQuery query(Builder|Closure|null $query)

No description

Parameters

Builder|Closure|null $query

Return Value

InteractsWithTableQuery

Builder|null getQuery()

No description

Return Value

Builder|null

bool hasQueryModification()

No description

Return Value

bool

HasExtraAttributes extraAttributes(array|Closure $attributes, bool $merge = false)

No description

Parameters

array|Closure $attributes
bool $merge

Return Value

HasExtraAttributes

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

final __construct(string|null $id = null)

No description

Parameters

string|null $id

static Summarizer make(string|null $id = null)

No description

Parameters

string|null $id

Return Value

Summarizer

Summarizer id(string|null $id)

No description

Parameters

string|null $id

Return Value

Summarizer

Summarizer using(Closure|null $using)

No description

Parameters

Closure|null $using

Return Value

Summarizer

Summarizer selectedState(array $state)

No description

Parameters

array $state

Return Value

Summarizer

mixed getState()

No description

Return Value

mixed

mixed getSelectedState()

No description

Return Value

mixed

mixed summarize(Builder $query, string $attribute)

No description

Parameters

Builder $query
string $attribute

Return Value

mixed

array getSelectStatements(string $column)

No description

Parameters

string $column

Return Value

array

string|null getId()

No description

Return Value

string|null

Values bulleted(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

Values

bool isBulleted()

No description

Return Value

bool