Lines
100.00%
2 / 2
Functions and Methods
100.00%
2 / 2
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| GraphQLElement | 100.00% | 2 / 2 | 100.00% | 2 / 2 | 2 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| getPropertyName | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | namespace BO\Zmsclient\GraphQL; | |
| 4 | ||
| 5 | class GraphQLElement | |
| 6 | { | |
| 7 | protected string $propertyName; | |
| 8 | ||
| 9 | public function __construct(string $propertyName = '__root') | |
| 10 | { | |
| 11 | $this->propertyName = $propertyName; | |
| 12 | } | |
| 13 | ||
| 14 | public function getPropertyName(): string | |
| 15 | { | |
| 16 | return $this->propertyName; | |
| 17 | } | |
| 18 | } |