Gc\Core\Object::offsetSet PHP Метод

offsetSet() публичный Метод

Implementation of ArrayAccess::offsetSet()
public offsetSet ( string $offset, mixed $value ) : void
$offset string Offset
$value mixed Value
Результат void
    public function offsetSet($offset, $value)
    {
        $this->data[$offset] = $value;
    }

Usage Example

Пример #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testOffsetSet()
 {
     $this->object->offsetSet('k', 'v');
     $this->assertEquals('v', $this->object->getData('k'));
 }