3 namespace Drupal\vocabulary_serialization_test;
5 use Drupal\Core\Cache\CacheableResponse;
6 use Drupal\taxonomy\VocabularyInterface;
8 class VocabularyResponse extends CacheableResponse {
11 * @var \Drupal\taxonomy\VocabularyInterface
13 protected $vocabulary;
15 public function setVocabulary(VocabularyInterface $vocabulary) {
16 $this->vocabulary = $vocabulary;