| @@ 98-106 (lines=9) @@ | ||
| 95 | /** |
|
| 96 | * {@inheritdoc} |
|
| 97 | */ |
|
| 98 | public function intersect(SetInterface $set): SetInterface |
|
| 99 | { |
|
| 100 | $this->validate($set); |
|
| 101 | ||
| 102 | $newSet = clone $this; |
|
| 103 | $newSet->values = $this->values->intersect($set->values); |
|
| 104 | ||
| 105 | return $newSet; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * {@inheritdoc} |
|
| @@ 154-162 (lines=9) @@ | ||
| 151 | /** |
|
| 152 | * {@inheritdoc} |
|
| 153 | */ |
|
| 154 | public function diff(SetInterface $set): SetInterface |
|
| 155 | { |
|
| 156 | $this->validate($set); |
|
| 157 | ||
| 158 | $newSet = clone $this; |
|
| 159 | $newSet->values = $this->values->diff($set->values); |
|
| 160 | ||
| 161 | return $newSet; |
|
| 162 | } |
|
| 163 | ||
| 164 | /** |
|
| 165 | * {@inheritdoc} |
|