fork download
  1. public function getIterator()
  2. {
  3. return new ArrayIterator($this->attributes);
  4. }
  5.  
  6. public function offsetExists($offset)
  7. {
  8. return (isset($this->attributes[$offset]));
  9. }
  10.  
  11. public function offsetSet($offset,$value)
  12. {
  13. $this->attributes[$offset] = $value;
  14. }
  15.  
  16. public function offsetGet($offset)
  17. {
  18. return $this->attributes[$offset];
  19. }
  20.  
  21. public function offsetUnset($offset)
  22. {
  23. unset($this->attributes[$offset]);
  24. }
  25.  
Success #stdin #stdout 0.03s 26056KB
stdin
Standard input is empty
stdout
 public function getIterator()
    {
        return new ArrayIterator($this->attributes);
    }

    public function offsetExists($offset)
    {
        return (isset($this->attributes[$offset]));
    }

    public function offsetSet($offset,$value)
    {
        $this->attributes[$offset] = $value;
    }

    public function offsetGet($offset)
    {
        return $this->attributes[$offset];
    }

    public function offsetUnset($offset)
    {
        unset($this->attributes[$offset]);
    }