\Finecho\Logistics\TraitsHasAttributes

Trait HasAttributes.

Summary

Methods
Properties
Constants
getAttributes()
getAttribute()
setAttribute()
merge()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
__get()
toArray()
toJSON()
No public properties found
No constants found
No protected methods found
$attributes
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

Methods

getAttributes()

getAttributes() : array

Return the attributes.

Returns

array —

getAttribute()

getAttribute(string  $name, string  $default = null) : mixed

Return the extra attribute.

Parameters

string $name
string $default

Returns

mixed —

setAttribute()

setAttribute(string  $name, mixed  $value) : $this

Set extra attributes.

Parameters

string $name
mixed $value

Returns

$this —

merge()

merge(array  $attributes) : $this

Map the given array onto the user's properties.

Parameters

array $attributes

Returns

$this —

offsetExists()

offsetExists(mixed  $offset) : mixed

{@inheritdoc}

Parameters

mixed $offset

Returns

mixed —

offsetGet()

offsetGet(mixed  $offset) : mixed

{@inheritdoc}

Parameters

mixed $offset

Returns

mixed —

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : mixed

{@inheritdoc}

Parameters

mixed $offset
mixed $value

Returns

mixed —

offsetUnset()

offsetUnset(mixed  $offset) : mixed

{@inheritdoc}

Parameters

mixed $offset

Returns

mixed —

__get()

__get(mixed  $property) : mixed

{@inheritdoc}

Parameters

mixed $property

Returns

mixed —

toArray()

toArray() : array

Return array.

Returns

array —

toJSON()

toJSON() : string

Return JSON.

Returns

string —