public function register($format, AbstractDescriptor $descriptor) { $this->descriptors[$format] = $descriptor; return $this; }