Pinq\Collection::addRange PHP Method

addRange() public method

public addRange ( $values )
    public function addRange($values)
    {
        if ($this->source !== null) {
            $this->source->addRange($values);
        } else {
            $this->updateElements($this->scheme->appendIterator($this->elements, $this->scheme->toIterator($values)));
        }
    }

Usage Example

コード例 #1
0
ファイル: Collection.php プロジェクト: Goldinteractive/Pinq
 public function addRange($values)
 {
     if ($this->source !== null) {
         $this->source->addRange($values);
     } else {
         $this->updateElements($this->scheme->appendIterator($this->elements, $this->scheme->toIterator($values)));
     }
 }