public function supports(Resource $resource, $generation, array $data) { return 'method' === $generation; }