Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct(array $values) |
||
23 | { |
||
24 | if (!isset($values['value'])) { |
||
25 | throw new \RuntimeException('Title callback must be specified.'); |
||
26 | } |
||
27 | |||
28 | $titleMethodName = $values['value']; |
||
29 | |||
30 | if (!is_string($titleMethodName)) { |
||
31 | throw new \RuntimeException('Title method name must be a string.'); |
||
32 | } |
||
33 | |||
34 | $this->titleMethodName = $titleMethodName; |
||
35 | } |
||
36 | |||
58 |