Completed
Push — master ( 421fe0...c7f474 )
by Saulius
03:55
created

ImmutableArrayCollection::merge()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * This file is part of the sauls/collections package.
4
 *
5
 * @author    Saulius Vaičeliūnas <[email protected]>
6
 * @link      http://saulius.vaiceliunas.lt
7
 * @copyright 2018
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Sauls\Component\Collection;
14
15
use Sauls\Component\Collection\Exception\UnsupportedOperationException;
16
17
class ImmutableArrayCollection extends ArrayCollection
18
{
19
    /**
20
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
21
     */
22
    public function set($key, $value): void
23
    {
24
        throw new UnsupportedOperationException();
25
    }
26
27
    /**
28
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
29
     */
30
    public function add(array $elements): void
31
    {
32
        throw new UnsupportedOperationException();
33
    }
34
35
    /**
36
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
37
     */
38
    public function merge(array $elements): void
39
    {
40
        throw new UnsupportedOperationException();
41
    }
42
43
    /**
44
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
45
     */
46
    public function replace(array $elements): void
47
    {
48
        throw new UnsupportedOperationException();
49
    }
50
51
    /**
52
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
53
     */
54
    public function clear(): void
55
    {
56
        throw new UnsupportedOperationException();
57
    }
58
59
    /**
60
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
61
     */
62
    public function removeKey($key)
63
    {
64
        throw new UnsupportedOperationException();
65
    }
66
67
    /**
68
     * @throws \Sauls\Component\Collection\Exception\UnsupportedOperationException
69
     */
70
    public function removeElement($element)
71
    {
72
        throw new UnsupportedOperationException();
73
    }
74
75
76
}
77