Skip to content

Commit

Permalink
EICNET-2948: add return types to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriskr committed Feb 27, 2024
1 parent 5c8cba3 commit afb7e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/themes/eic_community/src/ValueObject/ValueObjectBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ abstract class ValueObjectBase implements ValueObjectInterface {
/**
* {@inheritdoc}
*/
public function offsetExists($offset) {
public function offsetExists($offset): bool {
return array_key_exists($offset, $this->getArray());
}

/**
* {@inheritdoc}
*/
public function offsetGet($offset) {
public function offsetGet($offset): mixed {
return $this->getArray()[$offset];
}

/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value) {
public function offsetSet($offset, $value): void {
// Does nothing as a value object array access is meant to be read-only.
}

/**
* {@inheritdoc}
*/
public function offsetUnset($offset) {
public function offsetUnset($offset): void {
// Does nothing as a value object array access is meant to be read-only.
}

Expand Down

0 comments on commit afb7e44

Please sign in to comment.