| 1 | <?php |
||
| 9 | class CacheMetadataCalculator { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var \Drupal\Core\Cache\RefinableCacheableDependencyInterface |
||
| 13 | */ |
||
| 14 | protected $metadata; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * CacheMetadataCalculator constructor. |
||
| 18 | * |
||
| 19 | * @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface $metadata |
||
| 20 | */ |
||
| 21 | public function __construct(RefinableCacheableDependencyInterface $metadata) { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function calculate(OperationDefinition $definition, ValidationContext $context, \ArrayObject $variables, \ArrayObject $structure) { |
||
| 31 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.