abstract class BaseId extends BaseScalar

Class BaseId

Properties

protected $value

Methods

bool
equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

__construct(string|null $id = null)

BaseId constructor.

value()

Return the scalar value.

string
__toString()

No description

Details

in BaseScalar at line 14
bool equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

Parameters

ValueObject $valueObject

Return Value

bool

at line 21
__construct(string|null $id = null)

BaseId constructor.

Parameters

string|null $id

at line 42
value()

Return the scalar value.

at line 50
string __toString()

Return Value

string