public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array()) { return array('type' => 'directory', 'path' => $this->getPath(), 'name' => $this->name, 'entries' => $normalizer->normalize($this->entries)); }