コード例 #1
0
ファイル: TypedCollection.php プロジェクト: Innmind/Immutable
 /**
  * {@inheritdoc}
  */
 public function replace(CollectionInterface $collection) : CollectionInterface
 {
     $this->validateCollection($collection);
     return new self($this->type, parent::replace($collection)->toPrimitive());
 }