Completed
Push — options ( 9b8513 )
by Akihito
02:57
created

Options::__toString()   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 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
final class Options
10
{
11
    /**
12
     * @var array
13
     */
14
    public $allow = [];
15
16
    /**
17
     * @var Params[]
18
     */
19
    public $params = [];
20
21 1
    public function __construct(array $allow, array $params)
22
    {
23 1
        $this->allow = $allow;
24 1
        $this->params = $params;
25 1
    }
26
27
    public function __toString()
28
    {
29
        return implode(', ', $this->allow);
30
    }
31
}
32