Completed
Push — master ( 791aba...50879e )
by Timur
01:32
created

ReadonlyLinodeApiResource::delete()   A

Complexity

Conditions 1
Paths 0

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 0
nop 0
1
<?php
2
3
namespace Linode\Api\Api;
4
5
abstract class ReadonlyLinodeApiResource extends LinodeApiResource
6
{
7
    public function update(array $payload): bool
8
    {
9
        throw new \LogicException(get_class($this).' is a read-only resource.');
10
    }
11
12
    public function delete(): bool
13
    {
14
        throw new \LogicException(get_class($this).' is a read-only resource.');
15
    }
16
}
17