trait CanBeCopied (View source)

Properties

protected bool|Closure $isCopyable
protected string|Closure|null $copyableState
protected string|Closure|null $copyMessage
protected int|Closure|null $copyMessageDuration

Methods

copyable(bool|Closure $condition = true)

No description

copyableState(string|Closure|null $state)

No description

copyMessage(string|Closure|null $message)

No description

copyMessageDuration(int|Closure|null $duration)

No description

bool
isCopyable(mixed $state)

No description

string|null
getCopyableState(mixed $state)

No description

string
getCopyMessage(mixed $state)

No description

int
getCopyMessageDuration(mixed $state)

No description

Details

CanBeCopied copyable(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeCopied

CanBeCopied copyableState(string|Closure|null $state)

No description

Parameters

string|Closure|null $state

Return Value

CanBeCopied

CanBeCopied copyMessage(string|Closure|null $message)

No description

Parameters

string|Closure|null $message

Return Value

CanBeCopied

CanBeCopied copyMessageDuration(int|Closure|null $duration)

No description

Parameters

int|Closure|null $duration

Return Value

CanBeCopied

bool isCopyable(mixed $state)

No description

Parameters

mixed $state

Return Value

bool

string|null getCopyableState(mixed $state)

No description

Parameters

mixed $state

Return Value

string|null

string getCopyMessage(mixed $state)

No description

Parameters

mixed $state

Return Value

string

int getCopyMessageDuration(mixed $state)

No description

Parameters

mixed $state

Return Value

int