Skip to content

Commit

Permalink
feat: allow resource writing / attribute setting
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Apr 12, 2021
1 parent 67918ad commit da6a78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Resource/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public function offsetGet($offset)

public function offsetSet($offset, $value): void
{
throw new RuntimeException("Attribute setting not yet implemented");
$this->attributes[$offset] = $value;
}

public function offsetUnset($offset): void
{
throw new RuntimeException("Attribute clearing not yet implemented");
unset($this->attributes[$offset]);
}
}

0 comments on commit da6a78e

Please sign in to comment.