abstract class BaseString extends BaseScalar

Class BaseString

Properties

protected $value

Methods

bool
equals(ValueObject $valueObject)

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

__construct(string $value)

BaseString constructor.

void
setValue(string $value)

In this method you must add all the necessary validations.

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 18
__construct(string $value)

BaseString constructor.

Parameters

string $value

at line 29
abstract protected void setValue(string $value)

In this method you must add all the necessary validations.

Parameters

string $value

Return Value

void

at line 36
value()

Return the scalar value.

at line 44
string __toString()

Return Value

string