/** * Creates a new Descriptor from the given Reflector. * * @param ThrowsTag $data * * @return ThrowsDescriptor */ public function create($data) { $descriptor = new ThrowsDescriptor($data->getName()); $descriptor->setDescription($data->getDescription()); $descriptor->setTypes($data->getTypes()); return $descriptor; }
/** * Creates a new Descriptor from the given Reflector. * * @param ThrowsTag $data * * @return ThrowsDescriptor */ public function create($data) { $descriptor = new ThrowsDescriptor($data->getName()); $descriptor->setDescription($data->getDescription()); $descriptor->setTypes($this->builder->buildDescriptor(new Collection($data->getTypes()))); return $descriptor; }