• Full name: \App\Shared\ValueObject\ArrayLiteral
  • This class implements: ValueObject

Properties

value

private array $value

Methods

__construct

public __construct(array $data = []): mixed

Parameters:

Parameter Type Description
$data array

fromNative

Returns an array object.

public static fromNative(): self
  • This method is static.

toNative

Returns the value of the array.

public toNative(): array

equals

Tells whether two arrays are equal by comparing their values.

public equals(\App\Shared\ValueObject\ArrayLiteral|\Qubus\ValueObjects\ValueObject $object): bool

Parameters:

Parameter Type Description
$object \App\Shared\ValueObject\ArrayLiteral|\Qubus\ValueObjects\ValueObject

isEmpty

Tells whether the array is empty.

public isEmpty(): bool

__toString

Returns the array value itself.

public __toString(): string

Throws: