Pinq\Collection::offsetSet PHP Method

offsetSet() public method

public offsetSet ( $index, $value )
    public function offsetSet($index, $value)
    {
        if ($this->source !== null) {
            $this->source->offsetSet($index, $value);
        } else {
            $this->toOrderedMap()->offsetSet($index, $value);
        }
    }

Usage Example

コード例 #1
0
ファイル: Collection.php プロジェクト: Goldinteractive/Pinq
 public function offsetSet($index, $value)
 {
     if ($this->source !== null) {
         $this->source->offsetSet($index, $value);
     } else {
         $this->toOrderedMap()->offsetSet($index, $value);
     }
 }