Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class CodeParserConfiguration |
||
11 | { |
||
12 | private bool $extractAssociations; |
||
13 | |||
14 | private bool $hideProtected; |
||
15 | |||
16 | private bool $hidePrivate; |
||
17 | |||
18 | private bool $hideAttributes; |
||
19 | |||
20 | private bool $hideMethods; |
||
21 | |||
22 | /** @param mixed[] $options */ |
||
23 | public function __construct(array $options) |
||
24 | { |
||
25 | $this->extractAssociations = (bool) ($options['associations'] ?? false); |
||
26 | $this->hidePrivate = (bool) ($options['hide-private'] ?? false); |
||
27 | $this->hideProtected = (bool) ($options['hide-protected'] ?? false); |
||
28 | $this->hideAttributes = (bool) ($options['hide-attributes'] ?? false); |
||
29 | $this->hideMethods = (bool) ($options['hide-methods'] ?? false); |
||
30 | } |
||
31 | |||
32 | public function extractAssociations(): bool |
||
35 | } |
||
36 | |||
37 | public function hidePrivate(): bool |
||
38 | { |
||
39 | return $this->hidePrivate; |
||
40 | } |
||
41 | |||
42 | public function hideProtected(): bool |
||
43 | { |
||
44 | return $this->hideProtected; |
||
45 | } |
||
46 | |||
47 | public function hideAttributes(): bool |
||
50 | } |
||
51 | |||
52 | public function hideMethods(): bool |
||
55 | } |
||
56 | } |
||
57 |