| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class StaticMethodDriver implements DriverInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $method; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Set the static method name for static method driver |
||
| 25 | * |
||
| 26 | * @param string $method |
||
| 27 | */ |
||
| 28 | 180 | public function __construct(string $method = 'loadSerializerMetadata') |
|
| 29 | { |
||
| 30 | 180 | $this->method = $method; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 156 | public function getMetadataForClass(ReflectionClass $class): ?ClassMetadata |
|
| 52 | } |
||
| 53 | } |
||
| 54 |