Completed
Push — 1.x ( 4683b3...5d021d )
by Akihito
05:24 queued 03:14
created

VoidOptionsRenderer::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * This file is part of the BEAR.Resource package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Resource;
8
9
use BEAR\Resource\Exception\MethodNotAllowedException;
10
11
final class VoidOptionsRenderer implements RenderInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function render(ResourceObject $ro)
17
    {
18
        throw new MethodNotAllowedException(get_class($ro) . '::options', 405);
19
    }
20
}
21